LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error reading more than 200 samples

I get an error trying to read more than 200 samples using the DAQ Assist express VI in case 2 of the attached VI,

 

The error reads:

 

DAQmx Read (Analog 1D Wfm NChan NSamp).vi:1<append>
<B>Property: </B>RelativeTo
<B>Corresponding Value: </B>Current Read Position

<B>Property: </B>Offset
<B>Corresponding Value: </B>


<B>Task Name: </B>_unnamedTask<4>

 

Kinda new so not really sure were to start.

 

Thanks for the help.

0 Kudos
Message 1 of 2
(2,305 Views)

Ok, there is some math here.  You are sampling at 20Hz.  200 Samples at 20Hz gives us 10 seconds.  If you go to the Advanced Timing tab of the DAQ Assistant, you will see a timeout setting.  It is currently 10 seconds.  So if you try to sample more than 200 samples (10 seconds worth), you will timeout.  If you want 400 samples, you need the timeout to be at least 20 seconds or sample faster.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 2
(2,287 Views)