From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(5,579 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
(5,577 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
(5,571 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
(5,568 Views)

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

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

NI 9207

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

Here is the code that I have started.

0 Kudos
Message 8 of 16
(5,541 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
(5,538 Views)

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

0 Kudos
Message 10 of 16
(5,536 Views)