Target Language Compiler    

Nonsampled Zero Crossings (NonsampledZCs)

The CompiledModel.NonsampledZCs record is used to generate the nonsampled zero crossing structure and the nonsampled zero crossings direction structure (rtZC, rtZCdir) in the generated code. It contains a mapping between the blocks nonsampled zero crossings and the model-wide nonsampled zero crossings structures. The number of nonsampled zero crossings will always be zero for fixed-step models.

Table A-14: Model.rtw State Mapping Information
Variable/Record Name
Description
NonsampledZCs {

  NonsampledZCDefaults {

    Width

1

}

NumNonsampledZCs

NonsampledZC record list length (i.e., the number of blocks with nonsampled zero crossings).

NonsampledZC {

One for record for each block with nonsampled zero crossings.

  Identifier

Unique name (identifier) within the current System record scope. This is always the terminal field for a state value.

  Width

Number of nonsampled zero crossings the block has.

  SigSrc

[systemIdx, callSiteIdx, blockIdx]

Block generating this nonsampled zero crossing

  Direction

A vector indicating the direction in which to search for zero crossings, containing values of -1 (positive-to-negative), 0 (either direction), and 1 (negative-to-positive).

}


  Continuous States Zero Crossings Events (ZCEvents)