AnsweredAssumed Answered

PNA, DCOM, and SourcePowerCalibrator Object : AcquirePowerReadingsEx error

Question asked by golfnut on Aug 15, 2012
Latest reply on Oct 28, 2014 by andeezlemoyo
I'm trying to perform a source power calibration with a power meter by issuing the DCOM commands from a remote PC running Matlab.  The source power calibration works fine if I use the front panel of the PNA.

Power Meter: N1912A  on gpib with address 13, with E4413A sensor on channel A
PNA: N5242A, port 1, measurement 

let app = the pna 835x application object

my code
*app.Preset;*

*%set frequencies and number of points*
*app.ActiveChannel.StartFrequency=60e6;*
*app.ActiveChannel.StopFrequency=2.51e9;*
*app.ActiveChannel.NumberOfPoints=101;*

*%change parameter to unratioed R1*
*app.ActiveMeasurement.ChangeParameter('R1',1);*

*%config power meter measurements*
*app.SourcePowerCalibrator.PowerMeterGPIBAddress=13;*
*app.UsePowerSensorFrequencyLimits = 0;*
*app.SourcePowerCalibrator.IterationsTolerance = 0.05;*
*app.SourcePowerCalibrator.MaximumIterationsPerPoint = 5;*
*app.SourcePowerCalibrator.ReadingsTolerance = 0.05;*
*app.SourcePowerCalibrator.ReadingsPerPoint = 3;*

*app.SourcePowerCalibrator.SetCalInfoEx(1,1,0.0,'True');*
*pschan=app.SourcePowerCalibrator.PowerSensors.Item(1).PowerMeterChannel;*

*app.SourcePowerCalibrator.AcquirePowerReadingsEx('naPowerMeter',pschan,'True');*

The last line causes the following error:

+??? Invoke Error, Dispatch Exception:+
+Description: Method AcquirePowerReadingsEx failed: Channel not found.+

I've tried all of the following versions of the AcquirePowerReadingsEx command.  They all return the same error listed above.

* app.SourcePowerCalibrator.AcquirePowerReadingsEx(0,'ASEN',1);
* app.SourcePowerCalibrator.AcquirePowerReadingsEx('naPowerMeter','ASEN','True');
* app.SourcePowerCalibrator.AcquirePowerReadingsEx(0,'naPowerSensor_A',1);
* app.SourcePowerCalibrator.AcquirePowerReadingsEx('naPowerMeter','naPowerSensor_A','True');
* app.SourcePowerCalibrator.AcquirePowerReadingsEx(0,'E4413A',1);
* app.SourcePowerCalibrator.AcquirePowerReadingsEx('naPowerMeter','E4413A','True');
* app.SourcePowerCalibrator.AcquirePowerReadingsEx(0,'E4413A',1);
* app.SourcePowerCalibrator.AcquirePowerReadingsEx('naPowerMeter','E4413A','True');
* app.SourcePowerCalibrator.AcquirePowerReadingsEx(0,'1',1);
* app.SourcePowerCalibrator.AcquirePowerReadingsEx('naPowerMeter','1','True');

Note, the following three commands work fine:
* app.SourcePowerCalibrator.CheckPower(0,80e6)
* app.SourcePowerCalibrator.CheckPower('naPowerSensor_A',80e6)
* app.SourcePowerCalibrator.CheckPower(pschan,80e6) %pschan is defined above

Any help would be appreciated.

Edited by: golfnut on Aug 15, 2012 3:08 PM  

Outcomes