Configuring Frequency Modulation
To configure Frequency Modulation programmatically, use the IKtM9383.
Modulation.Analog.Frequency
configuration routine should typically perform the following functions:
27
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(
amPath1.Mode = KtM9383AmplitudeModulationModeDeep;
amPath1.Type =
KtM9383AmplitudeModulationTypeExponential;
amPath1.Depth = 3;
amPath1.Source =
KtM9383AmplitudeModulationSourceFunction1;
var
amPath2 = am.AMPaths.get_Item(
amPath2.Mode = KtM9383AmplitudeModulationModeDeep;
amPath2.Type =
KtM9383AmplitudeModulationTypeExponential;
amPath2.Depth = 3;
amPath2.Source =
KtM9383AmplitudeModulationSourceFunction2;
var
amOut = am.LFOutput;
amOut.Amplitude = 1.0;
amOut.DCOffset = 0.25;
amOut.Source =
KtM9383AmplitudeModulationSourceDualFunction;
// Enable amplitude modulation on all paths
amPath1.Enable = true;
amPath2.Enable = true;
amOut.Enable = true;
Configure the Function Generator(s)
1.
For a given path, configure the function generator to be used.
a.
"AM1"
// dB
"AM2"
// dB
// Vpp
// Volts
IVI interface of the KtM9383 IVI driver. Your
Keysight M9383A PXIe Vector Signal Generator
);
);