LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

c#: event not firing during data acquisition

My program is written in visual C# and NI-DAQMX.  I have a routine that writes an analog output then reads the corresponding analog input (in a loop).  I have a button that stops the data acquisition (assigns a variable to true) and exits the routine.  The stop button doesn't work.  It looks like window sees the event (the interface freezes NOT the program) but doesn't act on it.  The data acquisition keeps going ignoring the event.  I've tried putting the read in a separate thread.  I've tried monitoring the event in a separate thread.  Nothing works. 
 
Any help will be appreciated!  Thanks.
0 Kudos
Message 1 of 4
(2,721 Views)
You're probably looking for the Multifunction DAQ forum or perhaps the Measurement Studio for .NET Languages forum.

This is the LabVIEW forum. Many folks in this forum shiver at text-based languages. Smiley Wink
0 Kudos
Message 2 of 4
(2,716 Views)
oops... thanks. 
0 Kudos
Message 3 of 4
(2,706 Views)

Please see the following link to see the correct location of this thread. 

0 Kudos
Message 4 of 4
(2,672 Views)