10-27-2011 04:21 PM
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
10-27-2011 05:07 PM
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