12-04-2013 07:47 AM
Hello,
I have a speed sensor that senses a notch in a motor shaft. When the notch is sensed, a 5V voltage pulse is sent to my NI cDAQ-9171. Does anyone have a good idea how to program LabVIEW to convert that 5V voltage pulse into a RPM measurement?
Thanks
12-04-2013 07:50 AM
You could use peak detection, then convert the time to rpm.
12-04-2013 08:05 AM
Could you provide a sample code? I understand what you are saying, I am just having difficulty seeing the program
12-04-2013 08:08 AM - last edited on 04-12-2024 06:04 PM by Content Cleaner
@Marshman wrote:
When the notch is sensed, a 5V voltage pulse is sent to my NI cDAQ-9171.
NI cDAQ-9171 is 'NI CompactDAQ 1-Slot USB Chassis', what I/O module are you using for your application?
12-04-2013 08:23 AM
I have a NI 9923 connection for a 37-pin DSUB module
12-04-2013 08:29 AM - last edited on 04-12-2024 06:05 PM by Content Cleaner
@Marshman wrote:
I have a NI 9923 connection for a 37-pin DSUB module
This is also not an I/O module, but this is just a Front Mount Screw Terminal Block for 37-Pin D-SUB Modules.
12-04-2013 08:30 AM
NI 9207
12-04-2013 08:44 AM
Here is the code that I have started.
12-04-2013 08:50 AM
Ok, so you're using an analog input module.
1. Calculate the frequency of acquired signal (in Hz).
2. Multiply it with 60 and thats the RPM.
12-04-2013 08:52 AM
Yes, I agree. My question really is how do I obtain the frequency?