LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

rs485 9-bit

I'm trying to communicate with a device over RS485.  I have 3 commands possible:  GET DATA, IBIT, and IBIT TERM.  First I write and then I read.  Now my code seems to work for GET DATA and IBIT but when I issue IBIT TERM the VISA Read times out.  I'm using a NI-9871 module in a cRIO.  My device requires half-duplex mode and 9-bit transmission.  I've enclosed the code (haven't been successful with this in the past).  Any ideas why this works for 2 out of 3 commands?

0 Kudos
Message 1 of 6
(3,121 Views)

as usual, the files did not attach.  Any ideas where I can post them?

0 Kudos
Message 2 of 6
(3,119 Views)

Hi faustina,

 

that problem is old as you can read in this thread!

 

Try to ZIP your files. Or rename VIs to VIT as I usually do…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 6
(3,107 Views)

trying this ... a .vi file with a .vit extension,  .zip files don't work

0 Kudos
Message 4 of 6
(3,101 Views)

.zip, .vi, and .vit files don't work

0 Kudos
Message 5 of 6
(3,100 Views)

What browser are you using?  If you are in IE, make sure you aren't in compatibility mode.

 

What are Get Data, IBIT, and IBIT Term?  What are you trying to communicate with and what protocol is it using?  Are you sure your device recgonizes the IBIT Term command?

 

Coult you be missing a termination character at the end of it?

0 Kudos
Message 6 of 6
(3,090 Views)