LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading values from Hart Scientific 1529 in Labview

Hi Dennis,

 

I have changed the string display and corrected the bytes at serial port.

However, when im trying to run the Visa Read, the output value alternates between "READ? 1" and "8515.2" which is the actual value. Is there any way that i can resolve this issue? Thanks in advance!!

Regards,

Jen L.

0 Kudos
Message 11 of 14
(521 Views)
The instrument is echoing the command. This may be a setting you can change. Otherwise, to get a multi-line response, a simple technique is to just do two reads. The first read terminates after the echoed command and the second read terminates after the data.
0 Kudos
Message 12 of 14
(511 Views)

Is it trying to echo back the original command?

 

Do two consecutive VISA reads, one will get the echoed back command, the other will get the response.  (If you don't, your buffer will eventually fill up and the data that you READ will become more and more stale.)

0 Kudos
Message 13 of 14
(508 Views)
Hi Ravens and Dennis, thanks for the help for the last 2 days.. Much appreciated. Thanks!!

Regards,
Jen L.
0 Kudos
Message 14 of 14
(482 Views)