Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically process aqcuired data

Solved!
Go to solution

Hi,

 

what i'm trying to do is: i want to read a signal from two channels with a duration of e.g. 10s.

Now during this Acquisition i want to check every 100 or 200ms if the signal is still "correct", so if not i would be able to do something. 

 

I'm not sure how to manage this task, because on the one hand at the end i need the whole signal and on the other hand during the process i need the "pieces" of 100/200ms to check something.

I tried to use a for loop (see uploaded pic) but i loose to much time in every iteration because i have to append the signals, so the whole signal has missing parts.

I also would need to get the data out of the for loop after evrey iteration, but that seems also not possible.

 

Has anyone another ideo how to approach this task?

web1.JPG

0 Kudos
Message 1 of 3
(3,260 Views)
Solution
Accepted by topic author Andy_L

Hi Andy,

 

please have a look at the shipped example in the Labview Example Finder

-> Hardware input output -> DAQmx ->  Analog Measurement -> Voltage -> Cont Acq&Graph Voltage - Int Clk

In this example you acquire continuous data in blocks of 1000 values. So you can check every 1000 values if

the data is still correct. If not you can stop the while loop for example.

But you won't miss any data because the sample mode is "continuous" with a determined sample rate.

 

 

 

Regards
DianaS
Message 2 of 3
(3,227 Views)

Hi Diana,

 

thank you very much, it now works.

I think my mistake was that i used the 'n samples' mode.

0 Kudos
Message 3 of 3
(3,220 Views)