Hi all, I have an Agilent 82357B GPIB/USB interface and I'm trying to use it to communicate with a Tektronix AFG310 Function Generator (FG). I've used another Agilent 82357A in the past (like, earlier today) with this PC and that works perfectly, so I assume all the Agilent/VISA stuff is still working.
It shows up in NI MAX as GPIB0::1::INSTR. This is the first strange thing, because when I set the GPIB address to be 5 in the FG's menu, it didn't show up in NI MAX; it only works if I set it to 1... but I thought the machine dictates the GPIB address and NI MAX displays that?
Anyway, so when the GPIB address is set to 1 in the FG's menu, I can click open the VISA Test Panel for GPIB0::1::INSTR and communicate with it, like get the system info by sending *IDN?:
I can also successfully change some parameters (you'll have to trust me that it's outputting the right stuff):
I can also communicate with it in the Keysight Connection Expert software:
However, for some reason, when I try making a very simple VI to do the same thing, I get an error. Here's the VI I used:
With the VISA resource name:
And it's giving me this fun error:
What's going on here? I googled that error, but didn't find anything that really helped me resolve it.
It's very strange to me that I can communicate with the machine (which should be like 90% of the hard part) but my VI can't. In the Agilent VISA User's Guide, here: http://cp.literature.agilent.com/litweb/pdf/E2090-90040.pdf
It gives that error as "VI_ERROR_NCIC". It seems like there's a VISA command it gives so you can put the controller in charge, viGpibPassControl on page 204 of that link: "Tell the GPIB device at the specified address to become controller in charge (CIC)."
...but I don't really know how to use that. Does anyone know what I can do? Thank you!