Real-Time Measurement and Control

Showing results for 
Search instead for 
Did you mean: 

how to save temporarily the data when real time acquisition




  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

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



Here's an example


Message 2 of 2