ni.com checkout is currently experiencing issues.

Support teams are actively working on the resolution.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

IVI Driver for Agilent 33250 errors out based on unrelated initialization parameters

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.

 



0 Kudos
Message 1 of 1
(2,821 Views)