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,296 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,294 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,288 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,285 Views)

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

0 Kudos
Message 5 of 16
(7,276 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,274 Views)

NI 9207

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

Here is the code that I have started.

0 Kudos
Message 8 of 16
(7,258 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,255 Views)

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

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