LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView Help needed on Loops

Solved!
Go to solution

I am currently doing a LabVIEW MyRIO project on how to display values. Basically I'm given a LCD display and a keypad. I'm supposed to show three sequences in order. First, we have to ask the user to input a number on the keypad to choose his area of interest. Then according to the number, the user is asked again to choose another number to specify which particular value he/she wants to look at. Lastly the value will be displayed and the user can choose to return to the previous sequence interface by pressing a key. Each of the three sequences are able to "hold" until the user presses a button.

I am able to show up to the second interface via using while loop inside a case structure, but I do not know how to start on returning to the previous sequences by pressing a key. I require assistance on this particular portion.

Thanks in advance!

0 Kudos
Message 1 of 5
(3,142 Views)

If you wanna get help for your homework in this forum, I really advice you to show some code (not a screenshot, attach the real VI).

0 Kudos
Message 2 of 5
(3,120 Views)

You just need a proper state machine.  It is easy enough to go back to previous states when properly set up.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 5
(3,096 Views)

I'm having trouble with trying to press the keypad to give a number command as it will affect the outermost 'number' and there will be conflict. Say I pressed the number 1, it will enter a case which requires me to press another number to continue, after i pressed the second number, it will affect the first 'number' pressed. 

I can't think of a solution for this problem.

Download All
0 Kudos
Message 4 of 5
(3,033 Views)
Solution
Accepted by topic author jy1212

That code looks way too complicated for the problem you described.  Where's the state machine we suggested to you?  Why so many pointless sequence structures?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 5 of 5
(3,013 Views)