LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sampling >30 sec at 20kHz into a CONTINUOUS record, i.e. no "gaps"

Hi, everyone
 
I'm using labview 8 and I want to sample a large amount of data and write it to a file. The sampling frequency lies around 20 kHz with up to 20 channels and more than 30 seconds of time. This constitutes a large amount of data, and reading it in "one chunk" is not possible. This ought to be one of the most usual tasks in labview, but i can't find a single template, example or chapter in the manual that shows me how to do this WITHOUT GETTING GAPS IN THE TIME-RECORD. If I put the DAQ Assistant into a for-loop there will be a small delay between each iteration and thus a gap in the record, won't there....?
 
regards,
Einar
0 Kudos
Message 1 of 5
(1,460 Views)

What hardware ar u using

If its a multifunction DAQ card, Go to find examples>>Hardware i/o>> DAQmx>> Analog measurements>> voltage>> and open any continous acq example

this should work better for your application

hope this helps

Regards

Dev

Message Edited by devchander on 03-12-2006 10:24 PM

Message 2 of 5
(1,453 Views)

Thank you, Devchander!

I'm sure this is basic stuff to most of you, but I'm fairly new to LW. Let me get this straight: ANY sampling task using "continuous" will result in a record that has no gaps regardless of the "number of samples" setting once you put it in a loop?

 

Einar

0 Kudos
Message 3 of 5
(1,433 Views)

Yes, That's how data acquired in continous sample mode will appear.

Just choose appropriate number of samples to read for the selected sampling rate.

Also, read the Help for DAQmx read.
Fo the concerned control, it says " If you leave this input unwired or set it to -1, NI-DAQmx determines how many samples to read based on if the task acquires samples continuously or acquires a finite number of samples"
 
Hope this helps
Regards
 
Dev
 
Message 4 of 5
(1,427 Views)

Hello Einar!

Welcome to National Instruments discussion forums as well as to the LabVIEW world. I hope you will be successful with LabVIEW and that it will allow you to decrease the development cost.

Some good links that describes DAQmx concepts and data acquisition programming in general can be found here:

Complete Data Acquisition Tutorial
http://zone.ni.com/devzone/conceptd.nsf/webmain/48B4C2DC01295874862570D7007915DA

Learn How to Install and Use a Data Acquisition Device
http://zone.ni.com/devzone/conceptd.nsf/webmain/1AF0F2C2E0E3311F8625708B0052FC73

Learn 10 Functions in NI-DAQmx and Solve 80% of Data Acquisition Applications
http://zone.ni.com/devzone/conceptd.nsf/webmain/40522A58794A358B86256E7B006B8D69?opendocument&node=1...

NI-DAQmx Professional Tools
http://zone.ni.com/devzone/conceptd.nsf/webmain/398AC5E81E683F7D86256FB9000D8717?opendocument&node=1...

NI-DAQmx Software
http://www.ni.com/dataacquisition/software/gallery.htm

Hope this helps and good luck!

Regards,

Jimmie A.

Applications Engineer, National Instruments

 

Regards,
Jimmie Adolph
Systems Engineering Manager, National Instruments Northern European Region

0 Kudos
Message 5 of 5
(1,403 Views)