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: 

rpm measurement with scb 68 using pci 6229

Hi

 

I need to take RPM measurements with a LED Remote optical sensor which has 4 leads coming from it.

+v, common, signal (+v to 0 vdc pulse) and housing ground (common).

 

Can anyone tell me which lead will go into whcih pins of my scb 68.

 

Thanks 

0 Kudos
Message 1 of 14
(4,997 Views)

Hello,

 

You can use the counters on the PCI-6229 to count the rising edges from your sensor.  What is the maximum frequency you're expecting from your sensor?  This will determine the pin you'll need to connect to.  If the frequency is too high, you'll probably need to use both counters on your PCI-6229.

 

The pinouts and details are available in NI-DAQmx Help, which installs with the NI-DAQmx driver software.  You can probably get to it by going to Start>>Program>>National Instruments>>NI-DAQ>>NI-DAQmx Help.

 

Here are the default pin assignments from that help file:

 

68-Pin M Series Signal Connections for Counters

 

The following table lists the default input terminals for various counter measurements on M Series devices, including M Series USB devices, such as the NI USB 6259 screw terminal and NI USB-6229 BNC devices. You can use a different PFI line for any of the input terminals. To change the PFI input for a measurement, use the NI-DAQmx channel attributes/properties.

 

MeasurementCtr0Ctr1
Count EdgesEdges: PFI 8
Count Direction: PFI 10
Edges: PFI 3
Count Direction: PFI 11
Pulse Width MeasurementPFI 9PFI 4
Period/Frequency Measurement (Low Frequency with One Counter)PFI 9PFI 4
Period/Frequency Measurement (High Frequency with Two Counters)PFI 8PFI 3
Period/Frequency Measurement (Large Range with Two Counters)PFI 8PFI 3
Semiperiod Measurement PFI 9PFI 4
Two-Edge Separation MeasurementStart: PFI 10
Stop: PFI 9
Start: PFI 11
Stop: PFI 4
Position MeasurementA: PFI 8
B: PFI 10
Z: PFI 9
A: PFI 3
B: PFI 11
Z: PFI 4
 

Here's how those map to the SCB 

 

Default NI-DAQmx Counter Terminals (Connector 0)

Counter SignalDefault SCB-68 Pin NumberSignal Name
CTR 0 SRC37 PFI 8
CTR 0 GATE3PFI 9
CTR 0 AUX45PFI 10
CTR 0 OUT2PFI 12
CTR 0 A37PFI 8
CTR 0 Z3PFI 9
CTR 0 B45PFI 10
CTR 1 SRC42PFI 3
CTR 1 GATE41PFI 4
CTR 1 AUX46PFI 11
CTR 1 OUT40PFI 13
CTR 1 A42PFI 3
CTR 1 Z41PFI 4
CTR 1 B46PFI 11
FREQ OUT1PFI 14

 

 

If you're using counter 0 to measure a "lower frequency", you should connect your signal to PFI 9, which is Pin 3 on your SCB-68.

 

 

Please post questions like these on the DAQ Hardware Discussion Forums.

 

Regards,

Vineet A.

0 Kudos
Message 2 of 14
(4,963 Views)

Thanks for the reply Vineet. I am expecting a rpm of not more than 600. I think I have to use only one counter. 

 

So how about other other 3 leads coming from the sensor?

 

 

0 Kudos
Message 3 of 14
(4,946 Views)

Hello,

 

Depending on the sensor, my guess is that the +V lead should connect to the 5V source and the others should be grounded.

 

The documentation for the sensor should be able to confirm that.

 

Regards,

Vineet

0 Kudos
Message 4 of 14
(4,823 Views)
I think your V+ will have to attach to the power supply for the sensor. The V+ should go to the power source the common should go to ground for that power source. Signal should go to the counter and you will have to jump between the common of the power and the common for the LED into the counter common.
Tim
GHSP
0 Kudos
Message 5 of 14
(4,811 Views)

 

Hi Vineet,

 

I am also trying to measure the speed of a model turbine-rotor with scb 68 but using the NI 6289. The speed of the rotor is about 1000rpm (around 16Hz) but the sensor should detect every blade (there are 10 blades), so the frequency should be below 200Hz. I have a good understanding of the principle but I am new to Labview and new to NI hardware. 

 

My sensor has to be powered between 10-30V. Assuming I will use 18V to power the sensor is it ok to have a simple voltage divider to ensure the sensor's output pulse does not exceed 5V (asuming the ground of the 18V power supply is connected to the AIGND)? The divider's output will be connected to PFI9 (I plan to use counter 0).

 

Is there a sample labview program working with ni 6289 timers you can point me to?

 

Thank you,

rares

0 Kudos
Message 6 of 14
(4,220 Views)

Hello Rares,

 

The timers on the NI 6289 are the same as many other NI-DAQmx devices, so any NI-DAQmx example should work for you.

 

For continuous counter measurements, I'd recommend starting with >> Meas Dig Freq-Buffered-Cont-Large Range 2 Ctr.vi which is available in the LabVIEW Example Finder if you have NI-DAQmx installed.  On the block diagram, you can change the measurement method input on the Create Channel function to "Low Frequency with 1 Counter".

 

If the sensor output isn't 5V TTL, it's possible to use a voltage divider but you'll have to consider both voltage and current limitations.  Also, the negative or common terminal of the sensor should be connected to digital ground, and not AIGND.

 

Regards,

Vineet

 

 

0 Kudos
Message 7 of 14
(4,204 Views)

 

 

Thank you Vineet. I will try using a divider and use a 12V power supply to power the sensor. I will connect its common line (ground) to digital ground as you suggested. I will check the Meas Dig Freq-Buffered-Cont-Large Range 2 Ctr.vi (the vi you recommended) and try to perform modify it to see it working. I will let you know. Once again, thank you.

 

Regards,

rares

0 Kudos
Message 8 of 14
(4,172 Views)

Vineet,

 

 

I would like to thank you for your time and help. I started with the program you suggested and after making the small modification you indicated it worked. I could see the frequency on my screen. Once again, thank you.

 

Best Regards,

rares

0 Kudos
Message 9 of 14
(4,122 Views)

Hello Rares,

 

I'm glad it was helpful for you.

 

Regards,

Vineet

0 Kudos
Message 10 of 14
(4,095 Views)