LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial port RTS

Hello,

 

I have to be able to establish communication with a device on different baud rates. The procedure is as follows....

unassert RTS - VISA write (and wait) - assert RTS - VISA read (and wait) - unassert RTS.

 

Is there any way to automaticly controll RTS, so it asserts after all the bytes are written, and the wait's can be avoided? 

0 Kudos
Message 1 of 3
(2,457 Views)

Hi,

 

Have you tried using Hardware flow control?  It can be selected by right clicking 'COM1' on Device Manager and selecting Properties.  Select 'Port Settings' and adjust 'Flow control'.  

 

Jim 

Message 2 of 3
(2,447 Views)

Also you may waht to look at changing the sync mode on the VISA calls to make those needs to wait go away

untitled.PNG

 

When you transfer data from or to a hardware driver synchronously, the calling thread is locked for the duration of the data transfer. Depending on the speed of the transfer, this can hinder other processes that require the calling thread. However, if an application requires that the data transfer as quickly as possible, performing the operation synchronously dedicates the calling thread exclusively to this operation.


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 3
(2,445 Views)