05-30-2007 09:13 AM
05-31-2007
01:43 AM
- last edited on
08-22-2025
09:30 AM
by
Content Cleaner
Use an example vi from Examples shipped with LabVIEW. Read its documentation to understand how to use it
LabVIEW>>Find Examples>>Hardware input and output>>DAQmx>>Analog Measurement>> 'Voltage' folder will contain the example vi's
You could start with "Cont Acq&Graph Voltage-Int Clk.vi' for your application
You could also use DAQ assistant to begin with
For further reading on DAQmx functions, see this link
Any doubts, do ask
Regards,
Dev
Message Edited by devchander on 05-31-2007 01:44 AM
05-31-2007 04:31 AM
05-31-2007 04:49 AM
05-31-2007 10:19 AM
05-31-2007
04:36 PM
- last edited on
08-22-2025
09:31 AM
by
Content Cleaner
Hi,
If the producer-consumer programming is giving you trouble, I would suggest doing a finite acquisition (acquiring samples for all 8 seconds at once) and then doing post processing afterwards. The example ‘Acq&Graph Voltage-Int Clk.vi’ will work for this purpose, and you can have it return an array of doubles instead of a waveform if you would like.
The reason this solution will work for you is because the DAQcard-6062 has a buffer of 8,192 samples (6062 Specifications , p.77), and you will only acquire a total of 2000 over 8 seconds. (250S/s * 8 seconds = 2000 samples total). Since the 2000 samples can fit in the buffer, than you can do a finite acquisition, where it will acquire all samples and return them when done. Please make sure the timeout of the DAQmx read is 10 seconds or more to allow for a bit of extra time.
06-04-2007 04:09 AM
06-05-2007 10:43 AM
Hi,
Try using the Cont Acq&Chart Samples-Int Clk.vi from the example finder. Set the rate to 250 and the samples to read at 2000. This will then take 8 seconds of data, which not overflow your buffer as described from a previous reply. Now try to incorporate Producer-Consumer architecture into this example. This way you are continuously acquiring data without overflowing your buffer and manipulating the data without any discontinuity in data.