vssGetSimParTimeScale

Get the simulation time scale.

Syntax

vssGetSimParTimeScale(sparams)

n = vssGetSimParTimeScale(sparams)

Inputs

sparams
Simulation parameters handle.
Type: sparam
Dimension: -

Outputs

n
Simulation time scale. 0 means that the real time is ignored and the simulation runs as fast as possible, a different value corresponds the number of seconds correspondent to one unit of the simulation time
Type: double
Dimension: scalar

Example

Create evaluator, retrieve the respective simulation parameters handle and get the desired simulation parameter value.

modelpath = 'C:/Users/ActivateModel.scm' 
ff = vssCreateEvaluator(modelpath);
mdl = ff();
sparams = vssGetModelSimParams(mdl);
vssGetSimParTimeScale(sparams)
ans = 0