LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital input to rpm

Solved!
Go to solution

Hello!

I am new to labview and I have a problem, please help me.... 

I have a Picoturn which measures RPM of the turbine. I have connected the digital output from picoturn to Port 0 and D.GND port in BNC 2110. The BNC is connected to M-series PXI-6251 card. From the DAQ assistant I am getting 1 and 0 when I run the turbine. So I connectedd DAQ assistant to "boolean to digital convertor" and then connect it to digital waveform graph but I don't see anything in the digital waveform graph. 

 

I don't konw whether I am doing it right or wrong. I just need rpm from this. 

0 Kudos
Message 1 of 25
(4,834 Views)

Hi, ashnu

 

I think you should put on your vi, and we can figure out what problems in your program.

 

 

Patrick

Certified LabVIEW Developer
0 Kudos
Message 2 of 25
(4,809 Views)

Hello Patrick0418,

Thanks for the reply. Attached is the VI

0 Kudos
Message 3 of 25
(4,800 Views)

I am sorry the wires are broken in the previous vi, here is the snipshot of the vi.Digital_RPM.PNG

0 Kudos
Message 4 of 25
(4,790 Views)

This is likely close to what you want.  You didn't provide enough information but it is a start.  You didn't say how often you expect to see pules.  If at your fastest spinning RPM you see a pulse once every 1ms, then you'll want to sample at least once every 0.1ms.  This is a constant on the block diagram which is sample rate, which I set to 10KHz.  You'll also need a samle duration and I set that to 1 second.  Too fast and you won't get accurate readings, too slow and there will be an averaging affect.  You also didn't say how many pulses you expect to see in one revolution.  I set it to 8 as a front panel control.  I also back saved into 2010 but I don't have 2010 so no idea if it works.

0 Kudos
Message 5 of 25
(4,780 Views)

Hi,

 

You can check that I think it is what you want.

 

http://www.ni.com/example/13580/en/

 

Patrick

Certified LabVIEW Developer
0 Kudos
Message 6 of 25
(4,773 Views)

GEEZE Guys, you are doing that the hard way!

 

That M Series device  Has counters!

 

Set up a counter task (Frequency) and scale M=0.133333333 B=0 and scaled units are RPM (assuming 8 counts per rotation):smileywink:


"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 25
(4,761 Views)

Thanks all for the reply : Smiley happy:

@ Hooovahh: I will try your VI for sure and tell what I found. 

@Patrick0418: I am using digital input but the link helps for analog input only.

@

0 Kudos
Message 8 of 25
(4,752 Views)

Hello Hooovahh,

 

I am right now getting an error -200284 (Some or all of samples requested have not yet been aquired...)

To give you more details on how long I am running the turbine: 

1. Just for less than a minute and running the turbine manually. I am expecting rpm of 500.

The maximum rpm that I can get from this device is 320,000.For the correct vane setting I am expecting 1 Pulse per revolution.

2.Could you please suggest me what to choose in the external clock dropdown?

0 Kudos
Message 9 of 25
(4,726 Views)

Hey guys!!

 

I solved the problem with the external clock by choosing PXI CLK 10 (that was in the manual of PXI-6251). Now when I run the program(given by Hooovahh), just one LED glows and the rpm is still 0.I am getting the graph as just one line and the whole line shifting to 0 and 1and not a square graph!!

Please give me some suggestions.

0 Kudos
Message 10 of 25
(4,720 Views)