LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with this vi....random behaviour

hi all
i've a problem with this vi....it is a pop up window called by another vi.
 
when i insert some values and press write it will send the write command and must exit while if i press cancel it must exit directly.
 
the vi works but if i press cancel sometimes i must press cancel 2-3 times to exit and i can't understand this....
 
can you see my vi?
 
where is the problem?
 
thank you
http://www.sd-studio.it - web design agency
0 Kudos
Message 1 of 3
(2,237 Views)
Hello dario,

first problem: missing sub-vi's. Maybe they take too long to operate.

Second problem: the second frame of the outer sequence (which contains the event structure) has a big race condition: in the event you set the 'Quit', but in the while loop around you read from 'Quit'. There's no order which happen's first (even is the read operation is likely the first one)! Why don't you wire the boolean values directly to the stop condition of the while loop? You don't need this local variable in LabVIEW...

Now I attached a slightly changed version of your vi 🙂

Message Edited by GerdW on 07-17-2006 11:37 AM

Best regards,
GerdW


using LV2020 on Win8.1+cRIO
Message 2 of 3
(2,226 Views)
ok thank you!
 
i will try your mod but with a wait of 250 ms in avery event and loop the problem seems to be solved.....
http://www.sd-studio.it - web design agency
0 Kudos
Message 3 of 3
(2,210 Views)