Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 6008 program data limit in C#

While debugging a simple program I wrote for data logging, I discovered that in each session the USB 6008 had a hard limit on the number of data points that could be written into a TDMS file (something like 100,000 data points). Is there anyway to circumvent this limit? Ideally I'd like for the hardware to output data at a reasonable speed (say, 200 Hz) for a few hours at a time. It doesn't have to be into a TDMS file, even a regular text file is fine as long as it can be parsed later on.

0 Kudos
Message 1 of 4
(3,645 Views)

The limit for USB 6008 is 150Hz as listed on the datasheet

http://www.ni.com/datasheet/pdf/en/ds-218

 

Are you receiving any error or issue with your acquisition?

0 Kudos
Message 2 of 4
(3,610 Views)

My program is an iteration of the sample logger program provided, which has no problems recording at 1000 Hz (which was the default sample rate when you start the program). I've tested it at higher frequencies but 200 Hz is all I need.

 

My understanding of how the program works is you designate the rate, and the number of samples. For example, if you designate 1000 Hz and 1000 samples, the program will log for 1 second and output 1000 samples into the TDMS file. 

 

The problem is the amount of data points that could be written into a TDMS file per session. Once the number of data points reach above 100,000 the program will cease logging and end the session.

0 Kudos
Message 3 of 4
(3,607 Views)

You are using Visual Studio? Theres some advanced properties and methods that you can find. As they are available in LabVIEW. 

 

http://digital.ni.com/public.nsf/allkb/961EDE096E98E87D862579ED0068BFF9

You can try t use shorter sessions and then build your TDMS together or increasing buffer size.

0 Kudos
Message 4 of 4
(3,591 Views)