Setting calculator's auto shutoff - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: Setting calculator's auto shutoff (/thread-2805.html) |
Setting calculator's auto shutoff - Wolfgang - 01-05-2015 07:51 PM Since FW 6940 there is the system variable TOff setting auto shutoff. For further information please take a look at prime's help. Attachment: Program setting the auto shutoff. My special comment to Fw 6975: Wonderful! Thx to the development team. RE: Setting calculator's auto shutoff - toml_12953 - 01-05-2015 08:41 PM (01-05-2015 07:51 PM)Wolfgang Wrote: Since FW 6940 there is the system variable TOff setting auto shutoff. Thanks, Wolfgang! Tom L RE: Setting calculator's auto shutoff - rprosperi - 01-06-2015 01:06 AM (01-05-2015 07:51 PM)Wolfgang Wrote: Since FW 6940 there is the system variable TOff setting auto shutoff. When copying the source text, I get some invalid characters in the first line below the initial comment that begins //TF = readout catual... Line 21 just below reads: TF:=(B→R(TOff)/60000); (cannot paste exact same chars here) These errors prevent compilation (using Emu). The same invalid chars are in lines 21, 26 There are also similar invalid chars in lines 30, 32, 60, 61, 69, 70, 74 I presume this is some sort of language issue, but I've no idea from context what those chars should be. RE: Setting calculator's auto shutoff - Joe Horn - 01-06-2015 04:07 AM (01-06-2015 01:06 AM)rprosperi Wrote: When copying the source text, I get some invalid characters in the first line below the initial comment that begins //TF = readout catual... Replace every B???R with B→R, and every R???B with R→B. Somehow the "→" (right arrow) character got replaced with its three-character code. In CAS, type asc("→") (asc must be lowercase!) to see these three numbers. RE: Setting calculator's auto shutoff - Thomas_Sch - 01-06-2015 08:25 AM (01-06-2015 01:06 AM)rprosperi Wrote: When copying the source text, I get some invalid characters in the first line below the initial comment that begins //TF = readout catual...The source code file is (should be) encoded in UTF-8. Please try to change the encoding in your editor before copying. Maybe Wolfgang can provide the source in a code block. Thomas Code:
RE: Setting calculator's auto shutoff - Giancarlo - 01-06-2015 09:07 AM Strange, i just copied the Txt content, pasted in the Emu and worked flawlessly. I didn't have to type the B->R commands myself. Very nice program. I totally skipped this command with the last firmware. Nice finding, Giancarlo RE: Setting calculator's auto shutoff - Snorre - 01-06-2015 11:02 AM Hello, just a hint: since binaries get automatically converted to reals when used in real number operations, one may omit the explicit conversion, e.g. B→R(TOff)/60000 = TOff/60000 B→R(#123h) = 1*#123h = 0+#123h Greetings P.S. that holds for rev. 6975 but may change eventually (don't know if it's officially documented behaviour) RE: Setting calculator's auto shutoff - Tim Wessman - 01-06-2015 05:02 PM (01-06-2015 11:02 AM)Snorre Wrote: P.S. that holds for rev. 6975 but may change eventually (don't know if it's officially documented behaviour) That will always stay the same. Basically, there is an internal GetReal function used everywhere that will pull out a valid real from an integer, real, packed real, or complex with a 0 component in the second part. RE: Setting calculator's auto shutoff - Thomas_Sch - 01-08-2015 08:33 AM I've added a simple graphical display to the code. (Wolfgang knows that already..) Hints and tips are welcome. Is there already a "construction kit" for slideres etc., so I do not reinvent the wheel? Code moved to http://www.hpmuseum.org/forum/thread-2815.html Thomas RE: Setting calculator's auto shutoff - toml_12953 - 01-08-2015 01:16 PM (01-08-2015 08:33 AM)Thomas_Sch Wrote: I've added a simple graphical display to the code. (Wolfgang knows that already..) What's the little artifact after whole numbers when the multiplier is 0.5? Tom Lake RE: Setting calculator's auto shutoff - Thomas_Sch - 01-08-2015 01:23 PM Thanks for testing, I'm deleting the old text previous to re-drawing. The box was to small. Please replace Code: RECT_P(G0, xTF0-5,123, xTF0+13,133, #FFFFFF, #FFFFFF); Code: RECT_P(G0, xTF0-5,123, xTF0+16,133, #FFFFFF, #FFFFFF); RE: Setting calculator's auto shutoff - Snorre - 01-08-2015 01:45 PM Hello, Nice work, coders. You should post this program to the HP Prime Software Library, so it doesn't get lost on page 2ff eventually. Greetings RE: Setting calculator's auto shutoff - Thomas_Sch - 01-08-2015 04:31 PM Thanks for the hint. See http://www.hpmuseum.org/forum/thread-2815.html RE: Setting calculator's auto shutoff - toml_12953 - 01-08-2015 06:42 PM (01-08-2015 01:23 PM)Thomas_Sch Wrote: Thanks for testing, Thanks for that! How about adding the ability to drag the slider? (Some people are NEVER satisfied!) Tom L RE: Setting calculator's auto shutoff - Thomas_Sch - 01-08-2015 06:47 PM (01-08-2015 06:42 PM)toml_12953 Wrote: ..You are not alone ... At the moment you can "click" within the box changing the value, but a real slider would be fine. I'm thinking about it, therefor my questions regarding a toolbox. RE: Setting calculator's auto shutoff - Wolfgang - 01-09-2015 03:50 AM @ All: Thank you very much for notes, hints and help! Is there any (in-)official documentation about HP PPL explaining the Prime's touch? e.g. tapping and holding down == for incrementing or decrementing I want to use touch gestures in further programs, if reasonable. Greetings Wolfgang RE: Setting calculator's auto shutoff - ww63 - 01-09-2015 07:36 AM look at Hans Graph3D app. There he as implemented some touch support (zoom). Maybe in his source you can find some info. I think, in this Forum there was a thread about retrieving mouse inputs with the wait command. Maybe in the "brakout" game could be some Information too. [EDIT]Take a look at this[/EDIT] reagards Wolfgang RE: Setting calculator's auto shutoff - Wolfgang - 01-12-2015 03:05 PM @ww63 Thanks for your information. Is there any official guide relating to 'programming around the touch' in progress? Wolfgang RE: Setting calculator's auto shutoff - Han - 01-12-2015 04:23 PM I can post a short article later this evening on what I have learned about MOUSE() and WAIT(-1) if that will help. RE: Setting calculator's auto shutoff - Wolfgang - 01-12-2015 04:28 PM @ Han: That would be wunderbar! :-) Thanks a lot! |