LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

setting rs-485 transceiver mode programatically

Using CVI how can you change the transceiver mode and transmit/receive buffer settings?
0 Kudos
Message 1 of 2
(3,043 Views)
For RS-485 transceiver mode settings, use the ComSetEscape function (see the documentation for specifics), and to configure the input/output buffers, you must open your port using OpenComConfig.  The only input/output buffer setting that is configurable is size, although if you specify a negative output buffer size, it changes the way that the library passes data to the driver.  With a negative output buffer size, the data is passed directly to the driver by the thread that calls the write function, rather than waiting in an intermediary buffer for a separate worker thread to pass it to the driver. We often recommend using the direct method as it results in more intuitive and often faster program behavior.

Mert A.
National Instruments
Message 2 of 2
(3,041 Views)