Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

how to save temporarily the data when real time acquisition

Highlighted

Hello,

 

  I have a problem on data saving when I did real time data acquisiton.

3-second ECG signal each time was acquired to calculate a parameter by matlab script. this parameter should be saved temporarily, then the second 3-second ECG signal was got to calculate this parameter, then it is saved temporarily, then the third calculated parameter will be averaged with the last two parameters, then the average value was output.

for example, the parameters in 15 seconds are: A1,A2,A3,A4,A5. the average value at first is (A1+A2+A3)/3, then the next average value is (A2+A3+4)/3,

then the third one is (A3+A4+A5)/3.

so in order to calculate the average value, I have to save temporarily the parameters. How to save them, which function can be used ?

 

Thank you

0 Kudos
Message 1 of 2
(2,754 Views)

If you're running in a loop, you should be able to use stacked shift registers

See http://www.ni.com/gettingstarted/labviewbasics/shiftregisters.htm

 

Here's an example

temp.PNG

Message 2 of 2
(2,751 Views)