Keysight Technologies M9383A PXIe Programming Manual page 28

Vector signal generator
Table of Contents

Advertisement

The following is a code sample:
Keysight M9383A PXIe Vector Signal Generator
1.
Select the type of waveform to be played.
a.
Based on the selected waveform, configure the frequency rate of the
b.
waveform and also the ramp direction if a ramp was selected.
Configure the FM Path
2.
Once the generator is configured, perform the following steps:
Set the source of the AM path to the function generator.
a.
Set the Mode to either Deep or normal.
b.
Set the Type to either Linear or Exponential.
c.
Set the FM Depth using the units selected via the Type property.
d.
Enable modulation on the FM path.
3.
var
fm = driver.Modulation.Analog.Amplitude;
// Configure the function generators
var
function1 = fm.Sources.FunctionGenerators.get_Item(
"Function1" );
function1.Frequency = 1e6;
function1.Waveform = KtM9383AnalogModulationShapeSine;
var
function2 = fm.Sources.FunctionGenerators.get_Item(
"Function2" );
function2.Frequency = 10e6;
function2.Waveform = KtM9383AnalogModulationShapeSine;
var
dualFunction = fm.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" );
tone2.Frequency = 6e6;
tone2.Waveform = KtM9383AnalogModulationShapeSine;
// Configure the paths
var
fmPath1 = fm.FMPaths.get_Item(
fmPath1.Deviation = 1e-6;
fmPath1.Bandwidth =
KtM9383FrequencyModulationBandwidthNormal;
fmPath1.Source = KtM9383AnalogModulationSourceFunction1;
var
fmPath2 = fm.FMPaths.get_Item( "FM2" );
fmPath2.Deviation = 2e-6;
fmPath2.Bandwidth =
KtM9383FrequencyModulationBandwidthNormal;
fmPath2.Source = KtM9383AnalogModulationSourceFunction2;
var
fmOut = fm.LFOutput;
fmOut.Amplitude = 1.0;
fmOut.DCOffset = 0.25;
"FM1"
// Vpp
// Volts
);
28

Advertisement

Table of Contents
loading

Table of Contents