03-13-2015 10:10 AM
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
Solved! Go to Solution.
03-16-2015 10:10 AM
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
03-16-2015 11:43 AM
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
03-17-2015 04:08 AM
No worries!
I hope everything goes well with your project.
Charlotte N.