This VI inputs the binary value from an analog tachometer and tests for a rising or falling edge with level and historisis settings. There is also a maximum period setting to use as a default output if the tachometer signal is not present.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.