Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

problem in serial read

Hello everyone,

 

 

I am using Basic Serial Write andRead.vi from the example for serial communication with target. when I try to write AT command (AT\n) its reading the same AT command(AT\n) instead of OK.My COM port is working fine.. I tried in hyperterminal its working fine. can anyone tell me the solution. thanks in advance..

 

my labview version is 10.0

 

--

Thanks & Regards

saamy

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

Hyperterminal always adds CR/LF to a command.

You wrote AT\n

Is your string display in \code mode or in normal mode and maybe change the basic serial write (inside) that always CR/LF is added before it is written.

greetings from the Netherlands
0 Kudos
Message 2 of 3
(2,951 Views)

Hi Albert,

Thanks for ur reply..ya was displayed in normal mode only. But now the problem is solved. I just used \r\n instead of \n alone after AT. now its working fine thanks a lot..:)

0 Kudos
Message 3 of 3
(2,944 Views)