02-22-2011 05:59 AM - edited 02-22-2011 06:00 AM
I have an application to read a device on serial port. The data is sent in multiline from the device when i send a command string "a"
This is the data to read. I read it on hyperterminal and i can read it fine.
However from labview i get
"\sa00:\s\s682351\s\s106.288mV\s=2028.95\sa01:\s\s\s\s2137\s\s\s\s0.333mV\s=0.13\sa02:\s\s\s\s2092\s\s\s\s0.326mV\s=39\sa03:\s\s\s\s1638\s\s\s\s0.255mV\s=0.51\r\n"
Thats effectly the data from the first line. I am writing "a\n" to thr serial port to read data. Somehow i am not able to read data from rest of the lines.
. I am using the basic 2 port serial write read VI from labview examples.
Can anyone suggest a way around.
Thanks
Abhi
02-22-2011 08:14 AM
Check the help on VISA Configure Serial Port VI. A termination character of '\n' is enabled by default causing the read operation to stop when it gets to the linefeed character.