Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

CanI programmatically set PXI 8431 ports to half duplex (two wire)?

Solved!
Go to solution

Hi,

I'm using a PXI-8431/8 RS485 card for half duplex comms. I am using the usual VISA serial port setup for baud rate, etc, but I also want to set the port mode to two wire, no handshake.

At present I can do this from Windows, using the device manager, but it depends on somebody knowing and remembering to do it. I want to automate it so that it is always set in my initialisation, regardless of who has used it do do what. 

 

Can anyone suggest how I can achieve this?

 

Thanks

 

Malcolm

0 Kudos
Message 1 of 4
(6,272 Views)
Solution
Accepted by topic author MalcolmBebb@Honeywell

Hi Malcolm, 

 

 

You can programmatically set the wire mode and the flow control (handshaking) type in LabVIEW using property nodes.

 

The article in the link below shows how to do this at the end for setting the wire mode. If you duplicate the property node you can choose Flow Control as the property instead of Wire Mode. 

 

Setting the Transceiver Wire Mode on Ports for NI Serial Boards:

http://digital.ni.com/public.nsf/allkb/1D516C10D7EDFAC6862571110073B8F4

 

 

I hope that helps, please let me know if you have any questions. 

 

Charlotte N

Message 2 of 4
(6,237 Views)

Thanks Charlote,

The property node seems to do what I want. I didn't initially spot the Wire Mode property, as soon as I saw it in the example I was able to find it.

 

Thanks again,

Malcolm

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

No worries!

 

I hope everything goes well with your project.

 

Charlotte N. 

0 Kudos
Message 4 of 4
(6,210 Views)