The following variable names are built into Embed and can be used to pass signals or reference file names.
Block name |
Description |
$firstPass |
Generates an initial unit pulse on the first step of a simulation |
$isCodeGen |
It returns TRUE (1) if you are generating code from the diagram; or FALSE () if you are simulating the diagram |
$lastPass |
Generates a final pulse on the last step of a simulation |
$randomSeed |
Accesses the random seed set in the System Properties dialog |
$runCount |
Holds the simulation iteration count for multiple simulation runs, such as Monte Carlo simulations and parameter sweeps |
$timeStart |
Returns the start time of the simulation |
$timeStep |
Returns the step size of the simulation |
$timeEnd |
Returns the stop time of the simulation |