Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Error Hex 0xBFFF0015 timeout problem to read

Hello,
I work on an motor stepper with a swift 100 motor controller. The communication between my card and my PC is done by series connection RS232 and I communicate with the hyperterminal without problem.
I use the program Labview version 7.1 following: http://forums.ni.com/ni/board/message?board.id=4170&message.id=2223&view=by_threading&page=2

But when I send orders by ASCII characters such as "move n steps" on the "write buffer", an error message posts
"VISA: (Hex 0xBFFF0015) the withdrawal period (timeout) expired before the operation is not completed."
nothing even posts in my read buffer not an E or #, it remains grayed... . Why I cannot read this data?

I wrote in the "visa configures serial port" the configuration of the card given by documentation with 8 bits, 1 bit stop, Baud = 9600, parity none, handshake XON/XOFF. But I don't understand the box "car. of termination (0*A = 'n' = LF) and the box "activer caractère de terminaison » I know that the commands ASCII are characters from the host which must be followed by either has LF, CR gold CRLF. Which do have I to put?

Can you help me? And Can you not use abbreviation in your answers I'm French, thanks.
0 Kudos
Message 1 of 3
(10,051 Views)
The termination character setting of the VISA Configure Serial Port tells VISA write to terminate a read when the termination character is received. What I think the problem you are having is that you are not sending a termination character (either CR, LF, or CRLF). A quick way to do this is to right click on the write buffer control and select '\' Codes Display. Then enter your command followed by the appropriate slash code. A CR is a \r and a LF is a \n. You can also use Concantate Strings function to add the term character to the write buffer input. Use the constants on the string palette. And, unless you know that the returned byte count is always the same, you should use the VISA Bytes at Serial Port to determine how many bytes to read. I have attached a modified example with that and a termination character appended to the write buffer.
Message 2 of 3
(10,045 Views)
You were right, that functions perfectly.
I enormously thank you for having taken time to help me. Thank you
0 Kudos
Message 3 of 3
(10,040 Views)