I have a GUI set up that needs to control to Signal Generators through GPIB (USB-HS). One is an HP8657A an the other is an Agilent E4432B.
I downloaded drivers from NI for each. The 8657A was listed as plug and play and with the "load instrument" in the CVI gui I was able to get this working in no time. However the E4432B was an IVI driver which has me lost. I have installed the compatability package and driver and then ran MAX. Under the GPIB device I did a scan and located both devices (address 7 and 19). In the "Hardware Assets" tree item I created a new item (AgilentE4432B) with the resource setting of GPIB::19::INSTR. Then I set up a logical name (E4432B) in the "Logical Names" tree item and selected "agesg" for the Drive Session field. In the "Driver Sessions" tree item for agesg I selected the hardware asset (AgilentE4432B) I created previously. I saved all of the entries.
In the CVI gui a load the instrument and from the IVI/agesg directory add the agesg.fp. Then I add the following line in my code:
agesg_InitWithOptions("E4432B",VI_TRUE,VI_TRUE,"Simulate=0,RangeCheck=1,QueryInstrStatus=1,Cache=1",&IDE4432B);
And nothing happens to my SigGen. Using NiSpy I don't see any commands going to the 4432 only commands to the 8657. Looking at the example provided with the esg driver I added the checkErr function around the init operation but the pop-up only produces a few invalid characters.
Is there anything obvious about the setup procedure? Am I missing a step?
Any help appreciated.