07-22-2011 06:33 AM
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?
07-22-2011 02:16 PM
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
07-22-2011 02:24 PM - edited 07-22-2011 02:25 PM
Also you may waht to look at changing the sync mode on the VISA calls to make those needs to wait go away
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.