12-04-2014 02:35 AM
Hello,
I have a program which calculate the heart beat from the ECG signal. I want to show the beats per minute on a chart with 60s of history plot.
From the vi who calculate the heart beat I get as output the string with the number, only when occur the peak wave, then I convert it to a number and then I place it to the offset of a simulated DC signal.
(In the chart below the beats per minute are always 60 because I'm simulating a sine signal with 1Hz.)
------>
It works fine, but I would like to visualize not the peaks but a continuos line from point to point, like interpolation.
in this case, it would have been a orizontal line at 60 BPM.
I was thinking to store the last value of the string and keep it frozen until the next value update.
Do you have suggestions on how to do it?
Regards
Solved! Go to Solution.
12-04-2014 04:07 AM - edited 12-04-2014 04:09 AM
Not clear what you get as numbers, seems that you get zeros too, and do you get a decimal or a whatever 'dynamic' ??? value??
you puls-rate information could be ~45 to >180 values per minute!
Do you have to display exact one minute history? (keep the last ~300 values with timestamps and use a XY diagram ) maybe a history chart could be configured to show
wait ..... here is a way:
I feed a chart (with 256 points of history) with a waveform. the wfrm only has one value in it's value array and a t0 . The chart is set to display 60 sec . Seems to work
My simulation will output a min rate of ~45 BPM but you can beat it 😉
12-04-2014 06:50 AM
I got illuminated by your vi, I used the shift register as you did for keep the previous value in input to the offset signal simulator, when the string is empty.. now it works perfectly! thank you Henrik!!