I will present here, a very small schematic in Flowstone to calculate RPM via a voltage signal measured at a labjack U3.
My intended purpose is for measuring the RPM of a small wind turbine generator I plan to evaluate. You can use this software schematic for other applications.
Step 1: Basic Schematic Blocks.
The samples come directly from the labjack U3 AIN or FIO terminals. Whether its rising or falling edge, all that is needed is to know if the voltage is above or below a defined threshold value. This signal can be a half wave rectified alternator voltage, a hall proximity swtich or an infrared proximity switch. You can use your imagination to obtain that pulse in order to get the RPM reading. Whatever the means to obtain the signals, just never exceed the voltage limits of the labjack U3. A good idea is to keep the pulse voltages at 5.0VDC.
After counting the samples, its necessary to hold the samples counted and clear the counter. Using some basic maths, the RPM is obtained.
Step 2: The RPM Schematic.
This is just the segment of the schematic I'm going to plug into my home automation schematic. I have attached the flowstone schematic file for your use! Enjoy!