1. 程式人生 > 其它 >STK MATLAB互聯程式碼Code Snippets

STK MATLAB互聯程式碼Code Snippets

技術標籤:STKmatlab

Initialization

Get a reference to the AgStkObjectRoot using the running STK instance

Get a reference to the AgStkObjectRoot using the running STK instance

% Get reference to running STK instance
uiApplication = actxGetRunningServer('STK11.application');

% You can also specify STK 32
and 64 bit versions % Get reference to running STK 32-bit instance % uiApplication = actxGetRunningServer('STK11_x86.application'); % Get reference to running STK 64-bit instance % uiApplication = actxGetRunningServer('STK11_x64.application'); % Get our IAgStkObjectRoot interface root = uiApplication.
Personality2;

Start STK and get a reference to IAgStkObjectRoot

Start STK and get a reference to IAgStkObjectRoot


%Create an instance of STK
uiApplication = actxserver('STK11.application');
uiApplication.Visible = 1;

%Get our IAgStkObjectRoot interface
root = uiApplication.Personality2;