Hello,
I'm acquaring a blood pressure signal and I would like to integrate it from one heart beat until the next beat occure, and so on.
I made a subVI which tells me when the peaks occure and gives me their timestamps.
I will need to calculate the integral of this signal between the two peaks, in real time. So after each pulse, I will get a numeric value representing the integral.
The best way to do that is to store the data in a buffer and overwrite it at each peak? If yes, how can I do that?
If I store the data in a numeric array, will I lose the timestamps of each voltage data?
For now since I can't use the sensors, I'm simulating the signal with a sine wave at 1Hz. The BPM detection and timestamps work perfectly; 60 BPM.
I'm getting the dynamic data for the blood pressure signal as you can see.
The boolean "Pulse" is true everytime there is a peak in the ECG.
Regards