LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can't acquire continuous signal



Hi-

I am trying to acquire a continuous signal using the Daqmx acquire data vi.  I have the scan rate set for 100,000 (which is fine for one channel) and the samples set to 10,000.  The output on the graph is the same no matter if I select "continuous" acquisition or "N samples" in the Acquire Data.vi.  The graph and chart seem to update every few seconds as opposed to continuously.  Also, I am unable to stop running the program by pressing the "stop" button.  I have to abort the program.  I've attached the program below.  If anyone has any thoughts, I would appreciate it-

Sherri

0 Kudos
Message 1 of 2
(2,405 Views)
Your stop button has to be wired to something to actual stop and the normal thing is to wire it to the termination terminal of a while loop. Clicking the run continuous button on the toolbar is not the normal way to operate a VI. This should never be used except for occasional debug purposes. Put your code inside a while loop, wire the stop button and retry. There are numerous shipping examples on continuous data acquisition. Take a look at them to see what I mean. I've never really used the DAQ Assistant so I can't say whether you still won't have a discontinuity in your acquisition. If you do, using the DAQmx functions themselves instead of the assistant should solve your problems.
0 Kudos
Message 2 of 2
(2,402 Views)