HP Forums

Full Version: Input Screen
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way to show your output variable on the input screen? The triangle app lets you enter values on three variables then displays the results for the other three variables - all on the input screen.

I just want to plug values into an equation using the input command and see the results, but I also want to have the ability to change one of the input variables and see the new results, all on the same screen.
Hello,

Sorry at this point in time, there is no way to do that.

The crux of it is that the user can not setup some 'processing' while the input screen is running.

Cyrille
You can (sort of) by having a loop that calls your INPUT() command and dynamically adjusts the input parameters. I put up a skeleton of an equation library that did this.

http://www.hpmuseum.org/forum/thread-282...t=equation
You could try using a spreadsheet instead, since it is possible to call a user-defined function in a formula.
I'm not sure this is what you want, but here is some code I extracted from another program I am working on. Just cut and paste it into the virtual calculator or connectivity kit editor.
Code:
BasePress;BaseTemp;AtmPress;
PipeExpnA1;ElmtExpnA2;

EXPORT InputForm1()
BEGIN

BasePress:=0;BaseTemp:=0;AtmPress:=0;
PipeExpnA1:=0;ElmtExpnA2:=0;

REPEAT
INPUT({{BasePress,[0],{45,30,1}},
             {BaseTemp,[0],{45,30,2}},
             {AtmPress,[0],{45,30,3}},
             {PipeExpnA1,[0],{45,30,4}},  
             {ElmtExpnA2,[0],{45,30,5}}},

       {"Gas Base Properties Setup"},

       {"Base Psia:",
        "Base DegF:",
        "Atm Psia:",
        "Pipe Expansion:",
        "Element Expansion:"},
 
      {"Enter Gas Base Pressure",
        "Enter Gas Base Temperature",
        "Enter Atmospheric Pressure",
        "Enter Pipe Expansion, in/(in−°F)*1E−7",
        "Enter Element Expansion, in/(in−°F)*1E−7"},

       {BasePress,BaseTemp,AtmPress,
        PipeExpnA1,ElmtExpnA2},
       {BasePress,BaseTemp,AtmPress,
        PipeExpnA1,ElmtExpnA2}); 

PipeExpnA1:=BasePress*BaseTemp;
ElmtExpnA2:=BasePress*BaseTemp*AtmPress;

UNTIL BasePress=0;
END;
The 3 inputs are BasePress, BaseTemp, and AtmPress. The 2 outputs are PipeExpnA1 and ElmtExpnA2 which are calculated values. To exit, enter 0 in the "Base Psia" (BasePress) field.
rcf
Thanks all. That is exactly what I wanted - using a loop to repeat the input command that shows both the input variables and output variables. I like how you used one of the input variables to exit the loop.

As much as l like my HP Prime, I get the feeling that HP has restricted the ability to write programs with basic user controls such as user defined soft keys. I heard that the TI programmable graphing calculator has limited user program controls to prevent students from writing and playing games on their calculators. I wonder if HP has restricted user program controls for the same reason.
Reference URL's