RunScriptCommand Function: Sample Code

 

Microsoft® Visual Basic for Applications

Dim scriptcommand As String

 

' Set script command to cause Simulator to enter Run Mode

scriptcommand = "EnterMode(RUN)"

 

' Make the RunScriptCommand call

Output = SimAuto.RunSCriptCommand(scriptcommand);

 

' Set script command to cause Simulator to perform a single,

' standard solution

scriptcommand = "SolvePowerFlow(RECTNEWT)"

 

' Make the RunScriptCommand call

Output = SimAuto.RunSCriptCommand(scriptcommand);

 

Matlab®

% Set script command to cause Simulator to enter Run Mode

scriptcommand = 'EnterMode(RUN)';

 

% Make the RunScriptCommand call

Output = SimAuto.RunSCriptCommand(scriptcommand);

 

% Set script command to cause Simulator to perform a single,

% standard solution

scriptcommand = 'SolvePowerFlow(RECTNEWT)';

 

% Make the RunScriptCommand call

Output = SimAuto.RunSCriptCommand(scriptcommand);