Hi,
I am trying to communicate with an Agilent 33250 function generator using the NI HP 33120 IVI C Driver. I have noticed that certain attributes can not be queried depending on how I initialize the IVI driver. See example initailization below:
// The viGetAttribute on HP33120A_ATTR_AM_SOURCE will ERROR in this case
statusCode = hp33120a_InitWithOptions("USB0::0x0957::0x0407::MY44029973::0::INSTR", VI_FALSE, VI_FALSE,"Simulate=0", &hp33120a);
// The viGetAttribute on HP33120A_ATTR_AM_SOURCE will PASS in this case
// statusCode = hp33120a_InitWithOptions("USB0::0x0957::0x0407::MY44029973::0::INSTR", VI_TRUE, VI_FALSE,"Simulate=0", &hp33120a);
Is this a bug in the specific driver since the attribute should not be linked to the initialization options for the driver? I have also attached my entire C code.
Thanks!
Regards,
Manisha Singh
The MathWorks.