12-19-2009 02:35 PM
I have an instrument that I can log into Hyperterminal, type "IDN?", and the instrument responds.
I'm trying the same thing in LabVIEW using the following VIs strung together:
1. Visa Configure Serial Port (same settings that work in Hyperterminal, default everything else)
2. Visa Write ("IDN?")
3. Time Delay (0.2 seconds, I also tried much longer)
4. Property Node >> Serial Settings >> Number of Bytes at Serial Port
5. Visa Read (number of bytes from property node)
I select the correct port using the VISA pull down menu, and the VI runs without error, but zero bytes are returned. How do I make this behave like Hyperterminal?
I'm running this as an executable on a Vista machine with no LabVIEW, but I build it using LabVIEW 8.2.1 and the latest NI VISA, 4.6. I had to install NI VISA on the Vista machine for my COM ports to show up.
I've attached the VI; it's really simple.
12-19-2009 02:43 PM
12-19-2009 06:25 PM
12-19-2009 06:26 PM
12-19-2009 06:44 PM
bmihura wrote:
Oh, and it is an Agilent 34410A DMM.
Drivers are available in the Instrument Driver Network.
12-19-2009 06:47 PM - edited 12-19-2009 06:49 PM
No, your code had no termination characters at all - automatic or not. The enable termination character for the VISA Configure Serial Port is only for reads. Just like the help explains.
And while you should check the download page for updates, LabVIEW comes with the 34401 driver.
12-19-2009 11:15 PM
Dennis Knutson wrote:And while you should check the download page for updates, LabVIEW comes with the 34401 driver.
You know, I thought that's what the user might have meant, but Agilent makes a 34410A as well. Not sure if there's a big difference between the two, though.