Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

encoders

Hi,
 
I am new to NI RT. I have a dual channel quad encoder H25D-SS-5B-1000-AB-7406R-SM16. I need to program tie this encoder to a simple vi. How do I figure out the following?
 
Decoding type (It will actually work with 6624/PXI)
Z Index Value
Z Index Phase
 
 
0 Kudos
Message 1 of 4
(4,962 Views)
Hi,

This information was taken from the LabVIEW help and I believe should answer your questions:

Decoding type specifies how to count and interpret the pulses the encoder generates on signal A and signal B. X1, X2, and X4 are valid for quadrature encoders only. Two Pulse Counting is valid only for two-pulse encoders.

X2 and X4 decoding are more sensitive to smaller changes in position than X1 encoding, with X4 being the most sensitive. However, more sensitive decoding is more likely to produce erroneous measurements if vibration exists in the encoder or other noise exists in the signals.

Two Pulse Counting (10313) Increment the count on rising edges of signal A. Decrement the count on rising edges of signal B. 
X1 (10090) If signal A leads signal B, count the rising edges of signal A. If signal B leads signal A, count the falling edges of signal A. 
X2 (10091) Count the rising and falling edges of signal A. 
X4 (10092) Count the rising and falling edges of signal A and signal B. 

Units specifies the units to use to return angular position measurements from the channel.

Degrees (10146) Degrees. 
From Custom Scale (10065) Units a custom scale specifies. If you select this value, you must wire a custom scale name to the custom scale name input. 
Radians (10273) Radians. 
Ticks (10304) Timebase ticks. 
 
Z index enable specifies whether to use Z indexing for the channel. 

Z index value specifies in units the value to which to reset the measurement when signal Z is high and signal A and signal B are at the states you specify with z index phase. 

Z index phase specifies the states at which signal A and signal B must be while signal Z is high for NI-DAQmx to reset the measurement. If signal Z is never high while signal A and signal B are high, for example, you must choose a phase other than A High B High.

When signal Z transitions to high and how long it stays high varies from encoder to encoder. Refer to the documentation for the encoder to determine the timing of signal Z with respect to signal A and signal B.

A High B High (10040) Reset the measurement when signal A and signal B are high. 
A High B Low (10041) Reset the measurement when signal A is high and signal B is low. 
A Low B High (10042) Reset the measurement when signal A is low and signal B high. 
A Low B Low (10043) Reset the measurement when signal A and signal B are low.

I hope that helps.
Best regards,

Jordan D
Applications Engineering
National Instruments
0 Kudos
Message 2 of 4
(4,872 Views)

Jordan,

 

Thanks for your answer. However, right after I had posted it, I realized that it (this particular one) does not have a Z signal. At first, I thought I had a typo but I checked with the manufacturer. Have you seen any examples for an encoder like this only with A and B?

0 Kudos
Message 3 of 4
(4,719 Views)
Hello

Are you programming in the LabVIEW environment?
What type of counter application are you trying to do?

One good place to look for examples is through the Example Finder. In LabVIEW, under Help, select Find Examples. This will open Example Finder, under the browse tab, select Hardware Input and Output>>DAQmx>>Counter Measurements for all the different types of Counter examples we have. Each example will be different , but this will give you an idea of where to start with your application.

Let us know if you have any additional concerns/questions.

Regards,
  Sandra T.

Applications Engineer | National Instruments
0 Kudos
Message 4 of 4
(4,624 Views)