05-09-2016 02:01 PM
Hello All,
This might seem like a very simplistic question, but I've come to the end of my knowledge and require expert assistance. I'm trying to get two quadrature encoders (single ended) working by modifying the Counter - Read Encoder example, however when I add them both to the same task, only the second added channel is read, and the results are displayed for both channels. Individually they work fine, and if I create separate tasks for each encoder, then I run into the reserved error and it won't work either.
I know it's simple, the answer just eludes me a present. I've attached my VI as it stands, any input is greatly appreciated.
Thanks!
Steve
05-10-2016 02:46 PM
Figured it out, the DAQmx Channel properties that I was setting outside of the channel configuration sub-VI for my second channel was overwriting the properties of the first one. Added in an element at the top of the list, made it ActiveChans and tied it to the previously defined channel.
Updated VI attached for clarity.
Now everything works perfectly!