04-25-2006 11:17 AM
05-02-2006 09:11 AM
Hi Koniker,
NI officially don't support absolute encoders. The only type supported is quadrature encoders. You will find lots of information in our website about how to work with quadrature encoders. Also example code about how to make those measuraments is available.
Just using one of the counters of your DAQ card you would be able to read those kind of encoders and get the measurament.
As you are using a DAQ-SCXI you are using a multiplexed mode to communicate the SCXI chassis with the DAQ card. That means you are only using 4 digital lines and the analog input 0 of the DAQ card for the communication. You should need/buy the SCXI-1180, that is a simple module for the SCXI chassis which allows you to acces to the unused ports/terminals of the DAQ card and don't cost so much. That way you should be able to connect the outputs of your encoder to the counter inputs of the DAQ card.
Another more complicated/expensive solutions if you don't have other choice than using this encoder could be the next ones:
1. make some "extra" circuitery to convert your gray encoder output into a quadrature encoder and then procedure as explained before.
2. Use a fast clocked digital card for reading the data from the encoder and then process it to get the measurements.
I recomend you to work with a quadrature encoder, it would be cheaper and easier.
Hope you can go on with that information,
Thanks for using our products,
Regards,
Jaime Cabrera
NI Applications Engineering