STK Astrogator Sample Scripts | Constraint Sample Scripts | STK Communications Sample Scripts | STK Radar Sample Scripts | Vector Geometry Tool Sample Scripts

Script Samples

Use the following samples as templates for developing your own custom scripts.

All plugin script samples are located at:

<STK install folder>/CodeSamples/Extend/PluginScripts

See COM-based Plugin Scripts for instructions on the setup and use of plugin scripts.

STK Astrogator Plugin Scripts

Sample Files Description
VBScript: VB_ForceModel_Eval.vbs
PERL: Perl_ForceModel_Eval.pl
MATLAB: Matlab_ForceModel_Eval.m
A force model plugin script that adds user-defined accelerations to the force model.
VBScript: VB_EngineModel_SegStart.vbs
PERL: Perl_EngineModel_SegStart.pl
A custom engine model plugin script that stores time.
VBScript: VB_EngineModel_Eval.vbs
PERL: Perl_EngineModel_Eval.pl
A custom engine model plugin script that combined with the VB_EngineModel_SegStart script completes the definition of a custom engine model.
VBScript: VB_CalcObjectReset.vbs A custom calculation object plugin script.

VBScript: VB_CalcObject.vbs
PERL: Perl_CalcObject_Eval.pl
MATLAB: Matlab_CalcObject_Eval.m
Python: PY_CalcObject.py

A custom calculation object plugin script.

Constraint Plugin Scripts

Sample Files Description

VBScript: VB_Constraint.vbs
PERL: Perl_Constraint.pl
MATLAB: Matlab_Constraint.m
Python: PY_Constraint.py

A constraint plugin script that provides a method for adding non-generic, customized constraints directly into visibility computations.

STK Communications Plugin Scripts

Sample Files Description
VBScript: VB_TransmitterModel.vbs
PERL: Perl_TransmitterModel.pl
MATLAB: Matlab_TransmitterModel.m
A custom transmitter model plugin script.
VBScript: VB_ReceiverModel.vbs
PERL: Perl_ReceiverModel.pl
MATLAB: Matlab_ReceiverModel.m
A custom receiver model plugin script.
VBScript: VB_RainLossModel.vbs
PERL: Perl_RainLossModeModel.pl
MATLAB: Matlab_RainLossModeModel.m
A custom rain loss model plugin script.
VBScript: VB_GaussianAntennaGain.vbs
PERL: Perl_GaussianAntennaGain.pl
MATLAB: Matlab_GaussianAntennaGain.m
A custom antenna plugin script. In this case, the antenna is Gaussian with a rectangular dish. Its gain and beamwidth vary as a function of satellite position.
VBScript: VB_CommSysSatSelStrat.vbs
PERL: Perl_CommSysSatSelStrat.pl
MATLAB: Matlab_CommSysSatSelStrat.m
A custom satellite selection strategy plugin script for a communications interference model.
VBScript: VB_CommConstraint.vbs
PERL: Perl_CommConstraint.pl
MATLAB: Matlab_CommConstraint.m
A custom communications constraint plugin script for transmitters and receivers.
VBScript: VB_AntMultiBeamSelStrat.vbs
PERL: Perl_AntMultiBeamSelStrat.pl
MATLAB: Matlab_AntMultiBeamSelStrat.m
A custom beam selection strategy plugin script for multibeam antennas.
VBScript: VB_AbsorpModel.vbs
PERL: Perl_AbsorpModel.pl
MATLAB: Matlab_AbsorpModel.m
A custom absorption loss model plugin script.
VBScript: VB_PhasedArrayAntGain.vbs
PERL: Perl_PhasedArrayAntGain.pl
MATLAB: Matlab_PhasedArrayAntGain.m
A custom antenna gain plugin that models the main beam boresight gain as a broadside (that is, zero scan angle) maximum gain value reduced by the cosine of the scan angle. Off-boresight mainbeam gain and sidelobe structures are not modeled.
VB_DynamicModulator_CustomPSD.vbs
Perl_DynamicModulator_CustomPSD.pl
Matlab_DynamicModulator_CustomPSD.m
A custom Power Spectral Density plugin script.
VB_DynamicModulator_IdealPSD.vbs
Perl_DynamicModulator_IdealPSD.pl
Matlab_DynamicModulator_IdealPSD.m
A modulator plugin script that is used to dynamically change either a modulator or a particular encoding while allowing STK to compute a theoretical PSD.
VB_DynamicFilter.vbs
Perl_DynamicFilter.pl
Matlab_DynamicFilter.m
A custom RF filter plugin script.
VB_DynamicDemodulator.vbs
Perl_DynamicDemodulator.pl
Matlab_DynamicDemodulator.m
A custom demodulator plugin script.
VB_Beamformer.vbs
Perl_Beamformer.pl
Matlab_Beamformer.m
A custom phased array beamformer plugin script.
VB_NullDirectionProvider.vbs
Perl_NullDirectionProvider.pl
Matlab_NullDirectionProvider.m
A custom phased array null direction provider plugin script.
VB_BeamDirectionProvider.vbs
Perl_BeamDirectionProvider.pl
Matlab_BeamDirectionProvider.m
A custom phased array beam direction provider plugin script.

STK Radar Plugin Scripts

Sample Files Description
VBScript: VB_RadarSARNIIRSConstraint.vbs
PERL: Perl_RadarSARNIIRSConstraint.pl
MATLAB: Matlab_RadarSARNIIRSConstraint.m
A custom SAR constraint plugin script.
VBScript: VB_RadarSrchTrkConstraint.vbs
PERL: Perl_RadarSrchTrkConstraint.pl
MATLAB: Matlab_RadarSrchTrkConstraint.m
A custom Search/Track constraint plugin script.

Vector Geometry Tool Plugin Scripts

Sample Files Description
VBScript: VB_CustomVector.vbs
PERL: Perl_CustomVector.pl
MATLAB: Matlab_CustomVector.m
A custom Vector Geometry tool Vector plugin script.
PERL: Perl_CustomScalar.pl
MATLAB: Matlab_CustomScalar.m
A custom Vector Geometry tool Scalar plugin script.

 

STK 11.2.1 Programming Interface