The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

Touch periodic table on HP Prime
Message #1 Posted by Mic on 21 Oct 2013, 3:25 a.m.

With Tim's help and recommndation, here is a touch periodic table for HP Prime :

Video on calc : http://youtu.be/122FsX12ZrU

Download : http://mic.nic.free.fr/hp/Touch%20elements%20HP%20Prime.zip

      
Re: Touch periodic table on HP Prime
Message #2 Posted by Michael Lopez on 21 Oct 2013, 5:10 a.m.,
in response to message #1 by Mic

Thanks Mikael & Tim. Have downloaded for installation on my prime.

Cheers,

Michael

      
Re: Touch periodic table on HP Prime
Message #3 Posted by Michael Lopez on 21 Oct 2013, 5:48 a.m.,
in response to message #1 by Mic

Hi Mikael,

Have just tried installing the English language version via the connectivity kit (using Tim's instructions in this post: http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/archv021.cgi?read=251578 ) & there appears to be an error. When I tap "Run" in the program menu I just get an exclamation mark & nothing seems to happen.

Also going into Edit mode (out of curiosity)an error appears on line 100 & something.

Maybe I am doing something wrong & would appreciate your suggestions.

Thanks,

Michael

            
Re: Touch periodic table on HP Prime
Message #4 Posted by Mic on 21 Oct 2013, 6:37 a.m.,
in response to message #3 by Michael Lopez

Do you have incorrect caracters on line 100 ? Try this method : run emulator and then connectivity kit, open HP_ELEMENTS on the calculator emulated, copy the code and past it on a new program created on the connected calculator. Save.

      
Re: Touch periodic table on HP Prime
Message #5 Posted by toml_12953 on 21 Oct 2013, 7:37 a.m.,
in response to message #1 by Mic

The French version just gives me a quick exclamation mark. The English version gives me a syntax error on line 113.

Tom L

            
Re: Touch periodic table on HP Prime
Message #6 Posted by Mic on 21 Oct 2013, 8:34 a.m.,
in response to message #5 by toml_12953

On your calc ? read my post upper.

            
Re: Touch periodic table on HP Prime
Message #7 Posted by Sans on 21 Oct 2013, 8:49 a.m.,
in response to message #5 by toml_12953

I think you should define elements(); before FindEl(x,y). At least that works for me.

                  
Re: Touch periodic table on HP Prime
Message #8 Posted by CompSystems on 21 Oct 2013, 11:24 a.m.,
in response to message #7 by Sans

Hello

CHOOSE & MSGBOX command has a error, which is that the dialog box of menu is out of the current "picture" =(

PD: A menu can contain more than 6 items?

Edited: 21 Oct 2013, 12:30 p.m. after one or more responses were posted

                        
Re: Touch periodic table on HP Prime
Message #9 Posted by Mic on 21 Oct 2013, 12:01 p.m.,
in response to message #8 by CompSystems

No, 6 items max.

                              
Re: Touch periodic table on HP Prime
Message #10 Posted by CompSystems on 21 Oct 2013, 12:25 p.m.,
in response to message #9 by Mic

idea for many menus

DRAWMENU({"Z=","Mol","Electronegativity","Help","Authors","Next"});

if you press next item generates a new menu bar

DRAWMENU({"Prev","Item2","Item3","Item4","Item5","Item6"});

Prev item return

[Request for HP-TEAM]

allow menu width, with the purpose of displaying more text on each menu

Idea

0 or 1 or none == default 
2 double (2 menus width)
3 triple (3 menus width )

DRAWMENU( { { "ItemA", # }, { "ItemB", # }, { "ItemC", # }, .. });

DRAWMENU( { { "ItemA", { "ItemB", 2 }, { "ItemC", 3 } });

=>

[ItemA][___ItemB____] [______ItemC______]

Edited: 21 Oct 2013, 12:46 p.m.

                  
Re: Touch periodic table on HP Prime
Message #11 Posted by Han on 21 Oct 2013, 10:59 p.m.,
in response to message #7 by Sans

Quote:
I think you should define elements(); before FindEl(x,y). At least that works for me.

Not only move elements() above FindEl(x,y) but also put a declaration for FindEl above elements() as well.

      
Re: Touch periodic table on HP Prime
Message #12 Posted by Tim Wessman on 21 Oct 2013, 12:51 p.m.,
in response to message #1 by Mic

Hello,

Looking good!

If you can, please do not put my name in the program there. I was just showing how to make touches work (which your code provided a great base to do so) and would prefer not to have my name in there. Might cause someone to think it was an official HP thing or something like that. Also, I do not want to take away from your work on the really long and difficult parts.

Thanks!

TW

            
Re: Touch periodic table on HP Prime
Message #13 Posted by Mic on 21 Oct 2013, 1:04 p.m.,
in response to message #12 by Tim Wessman

No problem.

      
Re: Touch periodic table on HP Prime
Message #14 Posted by Geoff Quickfall on 22 Oct 2013, 2:45 p.m.,
in response to message #1 by Mic

Ha disregard, found the program in the program, i was looking in the app folder.

all is well, great app!!!!!

Edited: 22 Oct 2013, 2:47 p.m.

            
Re: Touch periodic table on HP Prime
Message #15 Posted by Geoff Quickfall on 22 Oct 2013, 8:22 p.m.,
in response to message #14 by Geoff Quickfall

Okay, i am stupid! I cannot for the life of me get the Elements program into the emulator or real.

Instead of telling you what i did, does anyone have a step by step from the unzipping to the loading.

okay, here is what i did:

1. unzipped and stored the results in the Prime Connectivity kit.

2. found the HPPL file and physically copied it to MYCALC with all the other HPPLL and the created file for the emulator PIPE_hp89 folder 3 its there and even shows up as a program on the emulator, but will not function.

so instead of telling what i did wrong, how did you guys and gals do it?

                  
Re: Touch periodic table on HP Prime
Message #16 Posted by Han on 22 Oct 2013, 8:32 p.m.,
in response to message #15 by Geoff Quickfall

All that does is places it into the "Contents" tab in the connectivity kit.

At this point,

1) open the conn. kit. 2) select the "Content" tab on the left border of the window (by default, the "Calculators" tab appears) 3) click on Programs, and open the HP_Elements_EN program 4) copy the source code 5) Click on the Calculators tab and go to Programs. Right click Programs and select new. Rename it whatever you want. 6) Paste the source code and save.

                        
Re: Touch periodic table on HP Prime
Message #17 Posted by Tim Wessman on 22 Oct 2013, 8:35 p.m.,
in response to message #16 by Han

Or just right click on it, "send to class", and it goes.

TW

                              
Re: Touch periodic table on HP Prime
Message #18 Posted by Geoff Quickfall on 22 Oct 2013, 9:39 p.m.,
in response to message #17 by Tim Wessman

Okay,

it is not me,

unzipped to program file folder I made in connectivity folder

copied to MyCalc and Content emmulator folder, see above

sent to emulator with "send to class"

get syntax error line 113

check, all programming there

however file HPPL is 43 k but file on emulator shows 23K or 0K even though it is all there in the program tab

so

have done Hans way and Tims way

even toasted everything and re downloaded zip file and unzipped. same outcome. I will keep working but very frustrating, in know it is there but 43K does not show up in Content under Programs or Emulator under Programs even though the file is there.

Geoff

                                    
Re: Touch periodic table on HP Prime
Message #19 Posted by Tim Wessman on 22 Oct 2013, 11:07 p.m.,
in response to message #18 by Geoff Quickfall

The issue is not you. Rather the program file has an error (guessing Mic had both the FR and EN versions in the calc and so calling "elements()" worked since it was finiding it in the french version) and that makes the sizing stuff a bit strange. Could also be that there is something with the sizing that doesn't work directly when a transfer comes in and there is an error like you see.

TW

                                          
Re: Touch periodic table on HP Prime
Message #20 Posted by Geoff Quickfall on 22 Oct 2013, 11:26 p.m.,
in response to message #19 by Tim Wessman

PHEW!

still trying to hack away at it.

Thanks Tim!

                                                
Re: Touch periodic table on HP Prime
Message #21 Posted by Han on 22 Oct 2013, 11:43 p.m.,
in response to message #20 by Geoff Quickfall

Send me an email (via forums) and I will email you the version I have in which the bug was corrected.

                                                      
Re: Touch periodic table on HP Prime
Message #22 Posted by Geoff Quickfall on 23 Oct 2013, 12:34 a.m.,
in response to message #21 by Han

Done!

Thanks, Geoff

                                                            
Re: Touch periodic table on HP Prime
Message #23 Posted by Han on 23 Oct 2013, 12:56 a.m.,
in response to message #22 by Geoff Quickfall

Sent you the .hppgrm file -- basically repeat the same steps as before, and it should work without you having to edit anything.

1. Place into the correct folder:

C:\Documents and Settings\<user>\My Documents\HP Connectivity Kit\Calculators\MyCalc

2. Fire up conn. kit -- you'll see it in the Content and the Class tabs.

3. Connect calc or emulator to conn. kit.

4. In the Class tab, open the Programs and right click HP_ELEMENTS_en and choose to send to the class.

                                                                  
Re: Touch periodic table on HP Prime
Message #24 Posted by Geoff Quickfall on 23 Oct 2013, 3:16 a.m.,
in response to message #23 by Han

Well, success sort of,

runs in emulator but WILL not run on the real.

followed your instructions plus a plethora of hacks and all i get on the real is

Error: Syntax error

followed by

Syntax error in program line 23 when I Esc the file.

All three text views look identical:CONTENT, EMULATOR and REAL (NCC1701) in my case.

As i said, when copied directly to MYCALC folder it shows up on content and class tabs. When CLASS tab selected and Send To Class executed i get the file in the real but with 0kb, the complete code in the editor and the above error messages!

Could it be the version

TOTALLY FRUSTRATING as i have been transferring my APPS and programs back and forth, to and fro, here and there.

So it works on the emulator along with all my created apps and programs but will not work on my PRIME.

I have deleted all aspects of the elements file, reloaded the connectivity kit and virtual, and still na-da.

Get to play with it on the emmulator though ;-)

Geoff

p.s. thanks for helping.

                                                                        
Re: Touch periodic table on HP Prime
Message #25 Posted by Geoff Quickfall on 23 Oct 2013, 3:16 a.m.,
in response to message #24 by Geoff Quickfall

p.p.s the offending code on the real is identical to the working code on the emulator AAAAAAAARRRRRRRRGGGGGGHHHHHHHH!

                                                                              
Re: Touch periodic table on HP Prime
Message #26 Posted by Han on 23 Oct 2013, 9:50 a.m.,
in response to message #25 by Geoff Quickfall

Change your integer format to hex on your calculator

Edited: 23 Oct 2013, 9:55 a.m.

                                                                                    
Re: Touch periodic table on HP Prime
Message #27 Posted by Geoff Quickfall on 23 Oct 2013, 1:46 p.m.,
in response to message #26 by Han

Did i miss that somewhere ;-(

would have saved alot of grief ;-)

all done and works!

Thanks all and Han.

Geoff

      
Re: Touch periodic table on HP Prime
Message #28 Posted by Patrice on 22 Oct 2013, 11:56 p.m.,
in response to message #1 by Mic

Hi Mic,
You should include The programs as text files in the archive.

there is a mistake in your program:

The function elements() is calling FindEl(x,y) and vice versa.

In order to make Check happy, your must add the line

FindEl(x,y);
before the elements() function
      
Re: Touch periodic table on HP Prime
Message #29 Posted by Jonathan Cameron on 23 Oct 2013, 12:14 a.m.,
in response to message #1 by Mic

Mic,

Very cool.

When you get around to an update, I suggest you end the color codes with an 'h' so that it works even if you are not in hexadecimal mode.

-Jonathan

      
Re: Touch periodic table on HP Prime
Message #30 Posted by Miguel Toro on 23 Oct 2013, 2:04 p.m.,
in response to message #1 by Mic

Hi Mic,

I tried the version in your post and I receive a "Syntax error in program line 113. I suppose it is the bug that has been talked about, so I just would like to ask you if you have a more recent debugged version.

In other news ;-)

1- I had to change the decimal mark from my preferred "," to a ".". If not, the syntax error occurs in line 1. No surprise on that, but that would be nice if the calculator could manage this regional settings, so there is no need for manual tweaking to do on the source code to make it work.

2- Something a little strange happens if I set the decimal mark to comma rather than dot. Be aware that I am just playing with the emulator and have not made to much reading of the manual). The problem happens if I try to do the manual conversion : ";" as list separator and comma rather than dot as decimal separator. When I do that the comment bars "//" provoke a syntax error so I have to delete them. I may not be doing this correctly

Thanks and regards,

Miguel

      
Re: Touch periodic table on HP Prime
Message #31 Posted by Les Koller on 27 Oct 2013, 4:45 a.m.,
in response to message #1 by Mic

I get ERROR LINE 113 message?


[ Return to Index | Top of Index ]

Go back to the main exhibit hall