As of May 2, 2022 the LabJack forums have been set to read-only.
If you are in need of support, please contact us via one of the methods described on our contact page.
Home/Forums/T7/ H25 optical incremental encoder configuring it to a T7
H25 optical incremental encoder configuring it to a T7
This is for a simple counter rather than quadrature, but it will be a good start. When you go through all the steps and then get to the section "Connecting your Signal to a Counter", just connect the A phase to FIO0 (and common to GND) and you should count pulses from the A phase.
Thank you for the tutorial. However, our problem was not resolved. We followed the steps and it worked but we don't know how to make our rotary encoder to work. In top picture I showed there is only 4 names working, from 0 to 3. How can we make the other names work? Since the rotary encoder uses 6 terminals. I also have a load cell attached that works that works.
Sounds like you had success going through steps 1-5 of the tutorial, which uses a test signal from DAC1. Great. Now the next step is to look at "Connecting your Signal to a Counter" in the tutorial. Connect just phase A from your encoder to FIO0 (and of course encoder common to T7-GND), and confirm that the counter does count pulses from your encoder. This is the easiest way to confirm the T7 digital input is recognizing pulses from your encoder, before you go on to to complications of quadrature.
To go on to quadrature, add the connection from phase B of the encoder to FIO1. See the following section for a description of what registers you need to write and read for quadrature:
So the counter increments with the DAC1 test signal, and also if you tap a wire connected to GND in the terminal, but not with your signal. That tells you that the counter is working, but something is wrong with your signal. See the text in "Connecting your Signal to a Counter" here:
To trigger a count your signal needs change from >0.5 volts to >2.64 volts. If you are not getting counts, your signal is not doing that, and there is not reason to move on to quadrature until you figure out what is wrong with your signal.
What sort of calibration are you trying to do and what problem are you having?
I suggest you start by going through the following tutorial:
https://labjack.com/support/software/applications/t-series/kipling/regis...
This is for a simple counter rather than quadrature, but it will be a good start. When you go through all the steps and then get to the section "Connecting your Signal to a Counter", just connect the A phase to FIO0 (and common to GND) and you should count pulses from the A phase.
Thank you for the tutorial. However, our problem was not resolved. We followed the steps and it worked but we don't know how to make our rotary encoder to work. In top picture I showed there is only 4 names working, from 0 to 3. How can we make the other names work? Since the rotary encoder uses 6 terminals. I also have a load cell attached that works that works.
Sounds like you had success going through steps 1-5 of the tutorial, which uses a test signal from DAC1. Great. Now the next step is to look at "Connecting your Signal to a Counter" in the tutorial. Connect just phase A from your encoder to FIO0 (and of course encoder common to T7-GND), and confirm that the counter does count pulses from your encoder. This is the easiest way to confirm the T7 digital input is recognizing pulses from your encoder, before you go on to to complications of quadrature.
To go on to quadrature, add the connection from phase B of the encoder to FIO1. See the following section for a description of what registers you need to write and read for quadrature:
https://labjack.com/support/datasheets/t-series/digital-io/extended-feat...
Compared to the simple counter, you just need to add 2 more registers to the Register Matrix, which are DIO1_EF_ENABLE and DIO1_EF_INDEX.
its not reading anything I get a value 2890 that does'nt change when I rotate the encoder.
So the counter increments with the DAC1 test signal, and also if you tap a wire connected to GND in the terminal, but not with your signal. That tells you that the counter is working, but something is wrong with your signal. See the text in "Connecting your Signal to a Counter" here:
https://labjack.com/support/software/applications/t-series/kipling/regis...
To trigger a count your signal needs change from >0.5 volts to >2.64 volts. If you are not getting counts, your signal is not doing that, and there is not reason to move on to quadrature until you figure out what is wrong with your signal.