04-30-2015 01:24 PM
i'm trying to connect tegam 1830a power meter to labview using usb-serial port
the device act correctly in max, but in labview the read visa function gives timeout error
i send order *iDN? to the device , and its work in max but not in labview
04-30-2015 02:04 PM
04-30-2015 02:42 PM
Forgive me for saying this, but when you open VISA with MAX, you are much slower in asking for the VISA "Write" than when you wire the two functions sequentially in LabVIEW. Try putting a delay of, say, 200 msec between the VISA Open and the first Write. Similarly, put a delay between the Write and the Read.
I presume that you did exactly these steps in MAX, correct? What about terminating the Write command -- did you have to give MAX a <CR><LF>? (I don't see it in your VISA Write).
Bob Schor
04-30-2015 03:19 PM
@Bob_Schor wrote:
Similarly, put a delay between the Write and the Read.
That wait is not needed since it looks like the Termination Character is being used.