Hello!
I am fairly new to Labview programing and just got the Arduino Mega running.
I got a hold of a photoelectric sensor that can detect object reflections with a precision of 0.3ms (SM312LVMHS). My goal is to make a reflections per minute counter (or an RPM counter).The max rate is about 3000 reflections per minute, or 50 reflections per second.
So I am using the digital read function and I can map the 0 and 1 in the waveform chart. Also I have a bolean LED that can detect the peak using Peak Detector PtByPt.vi
My loop is running at 10ms (this is the slowest I can run to detect one reflection at the 3000 reflections/min)
My question is:
How can I count the number of peaks in one second?
Anyone with a good logic to display the reflections per minute within a +/- 10 reflections/min?
Cheers!