topic how to save temporarily the data when real time acquisition in Real-Time Measurement and Control
https://forums.ni.com/t5/Real-Time-Measurement-and/how-to-save-temporarily-the-data-when-real-time-acquisition/m-p/1755724#M10662
<P>Hello,</P>
<P> </P>
<P> I have a problem on data saving when I did real time data acquisiton.</P>
<P>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.</P>
<P>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,</P>
<P>then the third one is (A3+A4+A5)/3.</P>
<P>so in order to calculate the average value, I have to save temporarily the parameters. How to save them, which function can be used ?</P>
<P> </P>
<P>Thank you</P>Thu, 27 Oct 2011 21:21:56 GMTMike_Wu2011-10-27T21:21:56Zhow to save temporarily the data when real time acquisition
https://forums.ni.com/t5/Real-Time-Measurement-and/how-to-save-temporarily-the-data-when-real-time-acquisition/m-p/1755724#M10662
<P>Hello,</P>
<P> </P>
<P> I have a problem on data saving when I did real time data acquisiton.</P>
<P>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.</P>
<P>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,</P>
<P>then the third one is (A3+A4+A5)/3.</P>
<P>so in order to calculate the average value, I have to save temporarily the parameters. How to save them, which function can be used ?</P>
<P> </P>
<P>Thank you</P>Thu, 27 Oct 2011 21:21:56 GMThttps://forums.ni.com/t5/Real-Time-Measurement-and/how-to-save-temporarily-the-data-when-real-time-acquisition/m-p/1755724#M10662Mike_Wu2011-10-27T21:21:56ZRe: how to save temporarily the data when real time acquisition
https://forums.ni.com/t5/Real-Time-Measurement-and/how-to-save-temporarily-the-data-when-real-time-acquisition/m-p/1755786#M10663
<P>If you're running in a loop, you should be able to use stacked shift registers</P>
<P>See <A href="http://www.ni.com/gettingstarted/labviewbasics/shiftregisters.htm" target="_blank">http://www.ni.com/gettingstarted/labviewbasics/shiftregisters.htm</A></P>
<P> </P>
<P>Here's an example</P>
<P><IMG src="http://forums.ni.com/t5/image/serverpage/image-id/57016i05D7CD5D9700EC5F/image-size/original?v=mpbl-1&px=-1" border="0" alt="temp.PNG" title="temp.PNG" align="center" /></P>Thu, 27 Oct 2011 22:07:40 GMThttps://forums.ni.com/t5/Real-Time-Measurement-and/how-to-save-temporarily-the-data-when-real-time-acquisition/m-p/1755786#M10663TutuAjayi2011-10-27T22:07:40Z