Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

What DAQ settings do I need?

I've set up my DAQ assistant to record voltage inputs. I am using an NI-9162 to record voltage values and then outputing the data to a .txt file. I want to set it up to record two samples a second and to run for 8000 samples but it doesn't seem to want to do this. When I run the program the following error comes up:

 

Measurements: Some or all of the samples requested have not yet been acquired.

To wait for the samples to become available use a longer read timeout or read later in your program. To make the samples available sooner, increase the sample rate. If your task uses a start trigger,  make sure that your start trigger is configured correctly. It is also possible that you configured the task for external timing, and no clock was supplied. If this is the case, supply an external clock.

Property: RelativeTo
Corresponding Value: Current Read Position
Property: Offset
Corresponding Value: 0

Task Name: _unnamedTask<2C>

 

 

I have it set to read 8k samples and 2 hz

 

Any advice would be appreciated

 

0 Kudos
Message 1 of 2
(2,704 Views)
I don't think that combination of sample rate and number of samples is a good idea. That's over an hour's worth of data that the buffer has to store and you don't get any data returned until the entire number of samples has been acquiried. Try setting the numbr of samples equal to the sample rate and running the VI in a loop until you've acquired all 8000. You could save the samples as they are acquired (what I would recomned) or wait until the acquisition is complete. A master/slave setup could have the save being done separately from the acquisition.
0 Kudos
Message 2 of 2
(2,689 Views)