12-20-2006 03:13 AM
12-20-2006 07:46 AM
01-02-2007 04:04 PM
In asynchronous serial communication, stop bits are delays that the sender inserts between bytes to allow some time for the receiver to process a byte before receiving the next byte. Try increasing the number of stop bits to 2 (from the default of 1).
How do you open the comm port?
Have you checked to see if you get errors opening the port?
Are you sure you're setting all parameters the same in hyperterm as in CVI?
01-17-2007 07:19 AM
01-17-2007 08:27 AM
If the problem is being caused by sending characters to the instrument before it is ready to receive them, then perhaps using the hardware handshaking of the Com port might help? Or does the instrument not support this (eg RTS/CTS) feature?
JR
01-17-2007 08:36 AM
01-17-2007 08:55 AM
01-17-2007 09:11 AM
01-17-2007 09:35 AM
It might help to disable the transmit buffers at the PC end. In your OpenComConfig() call, put a -1 as the last parameter, to disable the output queue. It could be that this queue was masking your efforts at introducing delays between characters.
JR
01-17-2007 10:17 AM