27
Keysight M9383A PXIe Vector Signal Generator
1.
a.
var
function1 = am.Sources.FunctionGenerators.get_Item(
"Function1"
);
function1.Frequency = 1e6;
function1.Waveform = KtM9383AnalogModulationShapeSine;
var
function2 = am.Sources.FunctionGenerators.get_Item(
"Function2"
);
function2.Frequency = 10e6;
function2.Waveform = KtM9383AnalogModulationShapeSine;
var
dualFunction = am.Sources.DualFunction;
var
tone1 = dualFunction.Generators.get_Item(
“Function1” );
tone1.Frequency = 2e6;
tone1.Waveform = KtM9383AnalogModulationShapeRamp;
tone1.Ramp = KtM9383AnalogModulationRampNegative;
var
tone2 = dualFunction.Generators.get_Item(
“Function2” );
tone1.Frequency = 6e6;
tone1.Waveform = KtM9383AnalogModulationShapeSine;
// Configure the paths
var
amPath1 = am.AMPaths.get_Item(
"AM1"
);
amPath1.Mode = KtM9383AmplitudeModulationModeDeep;
amPath1.Type =
KtM9383AmplitudeModulationTypeExponential;
amPath1.Depth = 3;
// dB
amPath1.Source =
KtM9383AmplitudeModulationSourceFunction1;
var
amPath2 = am.AMPaths.get_Item(
"AM2"
);
amPath2.Mode = KtM9383AmplitudeModulationModeDeep;
amPath2.Type =
KtM9383AmplitudeModulationTypeExponential;
amPath2.Depth = 3;
// dB
amPath2.Source =
KtM9383AmplitudeModulationSourceFunction2;
var
amOut = am.LFOutput;
amOut.Amplitude = 1.0;
// Vpp
amOut.DCOffset = 0.25;
// Volts
amOut.Source =
KtM9383AmplitudeModulationSourceDualFunction;
// Enable amplitude modulation on all paths
amPath1.Enable =
true
;
amPath2.Enable =
true
;
amOut.Enable =
true
;
Configuring Frequency Modulation
To configure Frequency Modulation programmatically, use the
IKtM9383.
IVI interface of the KtM9383 IVI driver. Your
Modulation.Analog.Frequency
configuration routine should typically perform the following functions:
Configure the Function Generator(s)
For a given path, configure the function generator to be used.