LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

snippets of continous data acquisition

Solved!
Go to solution

Hello,

 

I want to do a continous data acquisition with a NI-6133 @ 1MS per Channel. The data should be saved on harddisk. In parallel, I want to take snippets of the acquisition to calculate different values. The snippet acquisition should be triggert through an external digital trigger.  Are there any examples, which combine the continous data acquisition and collecting snippets?

 

Thanks a lot.

 

Best regards,

Michael

 

 

System

Windows 7

LabVIEW 2012

NI-6133

0 Kudos
Message 1 of 6
(3,518 Views)

This is a very common use-case. Check out this NI whitepaper.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 2 of 6
(3,484 Views)

Thanks for your reply. At the moment, my data acquisition looks like this and works well (picture shows a slimmed version):

 

data_acquisiton.png

Next to the triggerd acquisition I want to log the whole data, which will be captured through the continous acquisiton. Not only the triggered parts, the whole data stream from the beginning to the end of the acquisition. In parallel the triggering must go on. I tried the DAQmx logging (TDMS).vi - but with it, only the triggered parts get logged.

 

data_acquisition_and_logging.png

 

How can I reach a continuous logging of the data in parallel of the triggered acquisition.

 

Just another view on my problem:

 

whole datastream example:

01234567892587946301258974586532012459875642301546810352145789654102365479966541201365

 

Every time a 2 comes up the trigger gets fired and 3 samples get captured:

 

captured datastream:

234258258201245230214236201

 

Next to the captured datastream I want to record the wohle datastream in background on harddisk.

 

Any ideas how to do this?

 

Thanks a lot and best regards.

Michael

Download All
Message 3 of 6
(3,431 Views)

First off, Massive Honors for finding the DAQmx logging feature!  Ditto for using DAQmx Control Task appropriatly!..

Now you want all data logged to TDMS.  That is not going to happen with a triggered Task.  Make it a contiuous acquisition Task and try to find a way to limit the Data to a reasonable throughput.  Look up the Auto-Start property.  From the snip you might be missing that cool feature!  Of course, I might be missing some of your code specs too but, look at that OK?

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 6
(3,416 Views)

>> First off, Massive Honors for finding the DAQmx logging feature!  Ditto for using DAQmx Control Task appropriatly!..

Thank you!

 

>>Now you want all data logged to TDMS.  That is not going to happen with a triggered Task.  Make it a contiuous acquisition Task and try to find a way to limit the Data to a reasonable throughput.

Okay, that is possible.

 

>> Look up the Auto-Start property.  From the snip you might be missing that cool feature! Of course, I might be missing some of your code specs too but, look at that OK?

I am not sure what you mean by using the Auto-Start property. What would be the benefit?

 

Here some more details of my programm:

I acquire several channels with AC signals (AC frequency up to 100kHz). The waveform source comes out of a function generator Agilent 33220A , which also generates a trigger signal every start of an AC waveform. At the moment I am waiting for a trigger to acquire the samples for 10 complete waveforms. After acquisition I do severall calculations. After the calculations I am waiting for the next trigger. In the meantime a lot of signal data gets lost, because I am calculating. Usally that is no problem. But in some cases it would be nice to have a closer look at the whole raw data (the complete waveforms).

 

By switching from triggered to continous acquisition, I am not sure how to extract the necessary 10 complete waveforms after a trigger occurred to start my calculation.

 

Are there any examples available to have a closer look?

 

Thanks a lot and best regards,

Michael

0 Kudos
Message 5 of 6
(3,360 Views)
Solution
Accepted by topic author MichaGue_01

Thanks to the support of NI-Germany, I have found a working solution for me:

 

1.) Switch from trigger to continuous acquisition

2.) Connect the trigger signal to a digital IO

3.) Synchronize AI and DIO

4.) Extract the necessary samples by pattern search inside the digital waveform

 

Result:

The example shows the logging of 4 AI channels (Tested on Win7, NI PCI-6115, 4 channels each 5 MS/s) and the calculation on snippets of the triggered signal parts of each channel.

 

V04-WHILE-LOOP__acquisition_cont_trig_1-DIO_4-AI_Softwaretrigger.png

0 Kudos
Message 6 of 6
(3,234 Views)