03-17-2017 11:44 AM
In your FALSE case, you wired up the input tunnel. It should be the one coming from the shift register.
03-17-2017 11:51 AM - last edited on 03-17-2017 12:39 PM by karina.barles
Wired the ouput shift register with the input shift register for the false statement
Result:
The previous and the new values are the same. The subtraction shows 0 result.
heartbeat = infinty.
Thanks
03-17-2017 01:13 PM
I think what is happening is your value is staying above the threshold for more than 1 sample, and therefore you are getting indexes that are right next to each other. Since we only care about the rising edge for the sake of our calculations here, use a Boolean Crossing PtByPt to only perform the calculation when the threshold detector result goes from FALSE to TRUE.
03-18-2017 07:22 AM
Hi,
I tried implementing the Boolean crossing ptbypt VI. I wired the output of the threshold pt by pt into the input of booleancrossing ptbypt. I set the direction to false from true. The results were similar to previous tries. Both the shift registers gave same values, making heartbeat = infinite.
I also tried making the direction to true to false , but it gave no results. i.e: The shiftregisters seemed to not get updated.
Can you suggest me something else which I can try?
Thanks
P.S:I am uploading my modified VI.
03-18-2017 10:13 AM
03-18-2017 10:30 AM
Hello,
Will a TDMS file work. I am attaching it.
I was told to use boolean crossing, after number of tries.
The comment in the diagram is a mistake.
Noisy is present, but is negligible in contrast to the signal.
Similar logic is used in few videos where implementation is in MATLAB.
Thanks
03-18-2017 11:49 AM
Seems to work just fine. Did you set the threshold correctly?