Showing results for 
Search instead for 
Did you mean: 

Absolute encoder

Thanks for the answer, but I just fixed that problem 🙂

So now I am able to send simple command to the encoder, and to get back its answer.


Only problem now is that sometimes I get a timeout error, even though the command is well executed and I got the right answer.

Any tips on how to fix that?

Message 11 of 16

You can filter errors by error code…

Best regards,
CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

Message 12 of 16

Are you using the correct termination character when you configure the serial port?


Lynn said it looked like responses were terminated with a carriage return.  If you don't set that in the Serial configure, it will use the default of line feed.  Then you'd issue a command, and read some large number of bytes.  You'd get a complete message, but it will timeout because it won't get the linefeed character.  If you configure for carriage return, it won't timeout because the VISA read will return as soon as it sees the carriage return.

Message 13 of 16

Hi Schindfj! You removed the standard program E201?

0 Kudos
Message 14 of 16

You're not, by any chance, using "Bytes at port" AND termination enabled at the same time, are you?  It's one or the other (and in this case, termination is the way to go).


Of course everything is a guess because you are too shy to share your code.  😉

(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 15 of 16

I have the same problem, can you share your code? Thank you!

0 Kudos
Message 16 of 16