08-09-2013 10:11 AM
I have two while loop, one for the user interface and one for a state machine.
When I made a menu activation (or selection), the while loop (for the state machine) seems to be in a idle state.
I removed almost everything, and the problem seems to came from the VI "2700 Lire les valeurs.vi".
This is a normal behavior or I did something wrong?
08-12-2013 04:18 PM
Try adding Wait ms Multiple to the loops. Without the Wait ms Multiple the loops will execute as fast as possible and nothing else will be able to execute. Try that and see if it fixes the problem. The Idle may still be caused by the 2700 drivers themselves and they may not be able to go any faster. The program looks like it is written correctly.
08-12-2013 04:24 PM - edited 08-12-2013 04:30 PM
Alex,
He already has waits....
Can you post the exact steps to reproduce? I can't seem to be able to.
08-12-2013 04:31 PM
I think that if a loop runs in the UI thread, then menu activation will pause the loop because the menu is in the UI thread also.
Try removing the iteration count indicator and checking to see whether the subVI runs in the UI thread.
Lynn
08-14-2013 03:05 PM - edited 08-14-2013 03:06 PM
This problem occurs when I make a left-click on the menu. The while loop for the state machine stops untill I make a menu selection. The cluster (Irradiance, Température, Courant and Puissance) stops to be updated.
I removed the iteration count indicator but I still have the same problem.
The VI "2700 Lire les valeurs.vi" runs only in the state machine while loop.