ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Voltage Pulse to RPM

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

0 Kudos
Message 1 of 16
(7,546 Views)

You could use peak detection, then convert the time to rpm.

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 2 of 16
(7,544 Views)

Could you provide a sample code?  I understand what you are saying, I am just having difficulty seeing the program

0 Kudos
Message 3 of 16
(7,538 Views)

@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?


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 4 of 16
(7,535 Views)

I have a NI 9923 connection for a 37-pin DSUB module

0 Kudos
Message 5 of 16
(7,526 Views)

@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.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 6 of 16
(7,524 Views)

NI 9207

0 Kudos
Message 7 of 16
(7,522 Views)

Here is the code that I have started.

0 Kudos
Message 8 of 16
(7,508 Views)

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.


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 9 of 16
(7,505 Views)

Yes, I agree. My question really is how do I obtain the frequency?

0 Kudos
Message 10 of 16
(7,503 Views)