vssGetSimParNZcross

Get the simulation number of zero crossings.

Syntax

vssGetSimParNZcross(sparams)

n = vssGetSimParNZcross(sparams)

Inputs

sparams
Simulation parameters handle.
Type: sparam
Dimension: -

Outputs

n
Number of zero crossings. -1 is the answer by default when its parameter is set as automatic in the model
Type: integer
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);
vssGetSimParNZcross(sparams)
ans = -1