Custom Functions

Custom Functions can be used to define propagators, engines, and calculation objects.

Syntax

ComponentBrowser */ Duplicate "Custom Functions" {Component} <Duplicate Component Name>

ComponentBrowser */ SetValue "Custom Functions" {Component} <Attribute> <Value>

Description

The Custom Functions components are:

Component Description
MATLAB Custom Function A custom function implemented using a MATLAB M-file.
MATLAB DLL Custom Function A custom function implemented using a MATLAB DLL.
Perl Custom Function A custom function implemented using a Perl script.
Python Custom Function A custom function implemented using a Python script.
Script Engine Custom Function A custom function implemented using an IScriptEngine interface.
VB Script Custom Function A custom function implemented using Visual Basic Script.

There is one attribute for Custom Functions components, ScriptFile, which defines the filename of the script.

Examples

Duplicating a Custom Functions component

ComponentBrowser */ Duplicate "Custom Functions" MATLABCustomFunction "My MATLABCustomFunction"

Defining the filename for a custom function

ComponentBrowser */ SetValue "Custom Functions" "Copy of PerlCustomFunction" ScriptFile "c:/perlfunc.pl"

STK Programming Interface 11.0.1