08-28-2009 04:58 AM
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?
Solved! Go to Solution.
09-01-2009 04:32 AM
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.
09-01-2009 05:46 AM
Hi Diana,
thank you very much, it now works.
I think my mistake was that i used the 'n samples' mode.