Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How the method IviSpecAn_ConfigureLevel work in the agesa driver?

I have trouble with the IVI-driver for the Spectrum Analyzer. When I call the method IviSpecAn_ConfigureLevel in the SpecAn class driver I get an error message, but only when I call it for the first time. After the first time it works like charm. When I read out the error message I got from the intrument it tells "Undefined header". I use the latest IviSpacan driver (agesa_MS.msi) download from this site and the modell of Spectrum Analyzer is E4445A. Whats is wrong? Is there any settings I forgot?

Best Regards,

Mattias Danielsson
0 Kudos
Message 1 of 3
(3,510 Views)
Hello Mattias,

Could you please check if you are seeing the same behavior when you only use the specific driver functions. Please try to run the examples that come with the agesa IVI driver (C:\Program Files\IVI\Drivers\agesa). If you do see the same issue, please send us the NI-Spy log.

Thank you.

Best Regards,

Vesna Jadric
Instrument Drivers/IVI
National Instruments
0 Kudos
Message 2 of 3
(3,497 Views)
Hello Vesna!

Thank you for your answer!

I think I have figure out a bug in the agesa driver. It works fine after I have done the following changes in the agesa.c:

ViStatus _VI_FUNC agesa_ConfigureLevel

Removed:

viCheckParm( Ivi_SetAttributeViReal64 ( vi,
NULL,
AGESA_ATTR_INPUT_IMPEDANCE,
0, inputImpedance),
3, "inputImpedance");

static ViStatus agesa_RecalculateLevelToDBM

Removed:

checkErr( Ivi_GetAttributeViReal64(vi, VI_NULL, AGESA_ATTR_INPUT_IMPEDANCE, 0, &impedance));

It seems to be that the E4445A cant set the input impedance.

I can temporary run on my own modified driver but are there any chances to get an update driver soon?

Best Regards,

Mattias Danielsson
0 Kudos
Message 3 of 3
(3,486 Views)