LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event structure

Solved!
Go to solution

Hi,

 

I'm using event structure. In one of events program writes values via VISA when i change the value of slider and i release  mouse button. When I'm not interacting with any of controls value can be changed with device hardware buttons, so other in case program is reading values. How to do that when mouse button is not UP, program would continue reading values to see if hardware buttons were pressed? What event source and event to use?  Event case is in the while loop.

0 Kudos
Message 1 of 3
(2,545 Views)
Solution
Accepted by topic author RasEdga

Hi Ras,

 

use the timeout event with an appropriate timeout!

 

Even better: use an event-driven queued state machine…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(2,531 Views)

Oh, I was trying to use timeout event,but was missing little sandclock icon in the top left corner of event structure. Now it works. Thanks. Trying to finish version with event strucuture. Then maybe will try event-driven queued state machine, but for now it looks quite difficult to build.

 

Thanks.

0 Kudos
Message 3 of 3
(2,526 Views)