Thanks Bitdiddle, you pushed me in the right direction and I fixed the problem, I was using x64 LabVIEW, by switching to x86 version it started working. In short: Agilent USB-GPIB adapter I'm using works thru NI VISA Passport for Tulip which is 32bit (x86) exclusively, therefore x86 LabVIEW is required so that it calls x86 NI VISA. I suppose x64 LabVIEW cannot use x86 NI VISA. I'm just a bit annoyed by the fact that it "almost" worked with x64 LabVIEW (the instrument was certainly getting the command), I expected that x86/x64 conflict would yield a straightforward full stop error like "cannot load library..." or so.
My NI-MAX is x86, and with your hint I figured out what was going on. I also found this thread:
https://forums.ni.com/t5/Instrument-Control-GPIB-Serial/LabVIEW-2013-64-bit-and-Agilent-82357A/td-p/...
dealing with a similar situation.
VISA deployment is...strange. I have both Agilent and NI VISA on my system (NI VISA as primary):
- C:\Windows\SysWOW64\visa32.dll is version 18.0 signed by National Instruments
- C:\Windows\System32\visa32.dll is version 5.9 signed by IVI Foundation
- C:\Windows\System32\visa64.dll is version 5.9 signed by IVI Foundation
not sure which is which here, will leave it alone now since it seems to work.
Just hope that this experience helps the OP as well.