LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

highest priority action event on button click

I have a data acquisition cycle collecting data through eight serial ports.  A single cycle takes about 3 seconds.

I also have a PCI-6251 (DAQmx) card, from which eight separate digital output channels (generated by Button clicking action) are activating eight relays separately.

 

The Button actions should have higher priority over data acquisition process. But the problem I am facing is whenever I am clicking a Button on front panel the result is producing (relay activation) after completion of the current cycle.

 

How can I make the Button action instantaneous with highest priority?

Avijit

0 Kudos
Message 1 of 2
(2,486 Views)
The easiest solution is to use two parallel loops, one for the serial acquisition, the other for the DAQ commands. Is there any reason this should not work ?
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 2
(2,478 Views)