09-18-2015 09:41 AM
Can't get the IVI driver to work with Agilent 33522B function generator.(VISA funktions work fine)
I have installed the IVI-C driver. (http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=A1C02CABC2854F97E0440021287E6A...
It adds an "Instrument Driver software module" ag3352x. (IviDriver 1.1 IVI-C and IviFgen 5.0 IVI-C)
Added a "Logical Name" and selected the "Driver session" (ag3352x) and selected the Hardware resource (GPIB0::11:INSTR)
Tested with the "Simulate With" set to Specific driver works but when i set it to Don't Simulate i get "0xBFF0015 Timeout expired" in LV and TestStand.
The 33522B instrument goes into remote mode and show 2 communication Error: -113 Undefined header, -420 Query UNTERMINATED.
Is this a bug in the IVI driver? or have i missed something.
/J
Solved! Go to Solution.
09-21-2015 12:25 AM
You can run NI-IOTrace in parallel to see which commandstring is send to the device in the error case. Compare that string with the devices manual to get an idea, what's exactly happening. If it is syntax error then its clearly an error in the driver. But it might also a problem in the setup like using wrong command termination.
09-21-2015 04:42 AM
I got the communication working. (after trying different drivers and settings)
It seems to be the "Physical Name" and "Virtual Name" for the "Channels" in MAX was the problem.
The default Pysical Name has to be changed to something else than "1" although the instrument requires that the channel name is "1"
So it works if i set Virtual name to something else like "CHANNEL1" and then use "1" in LV or Teststand.
(In Teststand you have to change the pre-filled channel name (in this case CHANNEL1) to "1")
/J