08-27-2020 08:14 AM - edited 08-27-2020 08:16 AM
Hello everyone
I am new in Labview software.
I write a program, Please see attached picture.
I would like to have a program that if the generated numbers be more than 101 the cooling system will turn on with an alarm sign and source of numbers stop for 15 second and after that the program start to work again from first sequence.
Would you please help me to know where is my problem? ( I attached my program too)
Thank you for your help.
Solved! Go to Solution.
08-27-2020 08:29 AM
It sounds from your description like you want all of your code to repeat. Now it's just the number generator that repeats until you press the stop button after which you evaluate and signal alarm.
The loop needs to encompass all and your >101 evaluation needs to connect to a case.
(There is more to comment, but just to help you get some understanding of LV and the dataflow Think)
08-27-2020 08:31 AM
Your immediate problem is your While loop will only stop with a stop button. I think you want it to stop when the value is greater than 101.
But even more so, I think you should look into building a proper State Machine. Each of these steps you mention is a state. Do not put more loops into a state. You can repeat states until a condition is met.
08-27-2020 10:38 AM
I agree that a state machine is the correct thing for this (and most other simple programs!).