LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with visa serial - trasmitting ASCII code 13, 19

Hi everybody,
I'm developing an application in which my computer communicates with
a DSP through serial port.
Actually I'm just using two computers (one of them simulates the
DSP's behaviour); I'm using VISA VIs and i have problems trasmitting
the characters with ascii code 13 and 19 (I have to send flat data, so
all the codes are involved). For example, using max to open a VISA
session in both computers, connected through a serial cable, and
writing \13\13\13 on one, I receive, on the other computer, the
following:
\r
\r
\r
and sending \19 I don't receive anything.
Is it a problem with VISA?
What can I do?
Thanks in advance,
Skikera
0 Kudos
Message 1 of 3
(2,818 Views)
As always I'm not sure, but it looks very similar to question posted recently on this forum. Look here, hope this helps. 13 is 0x0D in hex and is a code for ASCII carriage return ("\r" in LV). Codes 17 and 19 are special codes used as flow control characters in some serial communication protocols and you must disable this setting the VISA serail settings->flow control property accordingly (to "no control" or any other not involving XON/XOFF codes, but be sure to set them to be the same on both computers). Also it is a good practice to check and set the rest of VISA serial communication properties BEFORE starting a co
mmunication.
0 Kudos
Message 2 of 3
(2,818 Views)
>Codes 17 and 19 are special codes used as flow
> control characters in some serial communication protocols and you must
> disable this setting the VISA serail settings->flow control property
> accordingly (to "no control" or any other not involving XON/XOFF
> codes, but be sure to set them to be the same on both computers). Also
> it is a good practice to check and set the rest of VISA serial
> communication properties BEFORE starting a communication.

Thank you so much, I just had to set the flow control property. (Sorry
I couldn't answer before).

Skikera
0 Kudos
Message 3 of 3
(2,818 Views)