08-26-2013 09:11 AM
Hello, I'm trying to figure out for a half a day how to unite two while loops in attached VI
The first while loop creates solid state machine that reacts on each button press and executes one of the case structure events. (this part works fine)
The second while loop, all the time generates random number, but it stops the generation during the time when one of the case structure events are executed. (this is the ticky part)
Any suggestions?
Solved! Go to Solution.
08-26-2013 09:24 AM
Are you saying that when you click mesure or save to execute one of the case, the parallel loop that generate random number will take longer than a second to generate a number? On my PC, it works fine. What kind of PC do you have? If timing is critical fo for the random number generation loop, try a timed loop and set it to higher prioity to see does that help.
08-26-2013 04:11 PM
hello..... no you understood it wrong.... the paralell loop that generates the random number represents one of functions that should be stopped only while Measure, Save cases are executed....
08-26-2013 07:25 PM
If you want your random number to stop while the user triggered events are executing you should be able to simplify your design quite a lot.
It can be done with one while loop using the timeout case.
08-27-2013 02:08 AM
Simple and exelent... Thank you!!!