You can set the Wire Mode property through Measurement and Automation Explorer (MAX) or LabVIEW. For details on the different wire modes you can set, refer to Transceiver Modes on NI-485 Serial Cards
This option allows you to set the wire mode in MAX first before any application development.
- Ensure you have administrator privileges on your computer account.
- Search for NI MAX in the Start Menu and right click >> Run as Administrator.
- Expand Devices and Interfaces and select the RS-485 serial port of interest.
- Select the Advanced tab at the bottom of the window.
- Select the desired wire mode from the Transceiver Mode drop-down menu.
The Wire Mode property can be set programmatically using LabVIEW property nodes, which allows you to integrate this functionality directly into your code.
Refer to the shipping example RS-485 Transceiver Control.vi located in LabVIEW Help >> Find Examples
>> Hardware Input and Output
, or follow the steps below to incorporate the property node into your application.
- Add a VISA property node on your block diagram.
- Wire the VISA serial session of the port of interest to the reference input. Alternatively, you can right-click on the reference input, create a constant or control, and select the port of interest.
- Select Property >> Serial Settings >> Wire Mode to configure the property.
- Right-click and select Change All to Write to set the property node to write.
- Right-click on the Wire Mode input to create a constant or control. Refer to Serial Settings: Wire Mode to see the values it can take on.
The NI-VISA driver exposes the Wire Mode property in MAX and LabVIEW. If you are experiencing issues getting to the serial settings or do not see the correct serial port, refer to Serial COM Ports Missing in MAX or LabVIEW