Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Square Wave Frequency

 

Hey guys,

 

Having a bit of trouble with my LabVIEW project.  The project will be taking a square wave which changes level for every heartbeat, this VI was just to simulate the input.  The front panel, block diagram and error message are shown (sorry for the big pic!);

 

Heart rate issue

 

Without the "timing and transition measurements" tool the program generates the wave I require.  I'm needing to sample the input wave for 6 seconds and scale this up to get a value for beats per minute.  I'm pretty much a novice so any and all help is appreciated!!

 

Thanks in advance,

 

Peter Smiley Happy


Regards,

Peter D

0 Kudos
Message 1 of 3
(4,464 Views)

You should use a graph and not a chart to display what signal is being generated. You would have seen that with the parameters you are using, the error message makes all the sense in world because you are generating such a small segment of the square wave. The frequency is NOT being calculated from the history data in the chart.

 

p.s. Questions like this should be posted to the LabVIEW board. It has nothing to do with NI counter hardware.

0 Kudos
Message 2 of 3
(4,443 Views)

Thank you for your advice, I think I see what's going wrong. 

 

I have other issues with this project so I'll start a new thread on the right board!

 

Peter


Regards,

Peter D

0 Kudos
Message 3 of 3
(4,436 Views)