Technical data
3
Writing Target Language Files
3-48
with the %roll that works under both situations. Table 3-8 contains the valid
variables assigned to
rollVars.
For example,
%assign rolVars = ["u0" "RWork" "<param>/Gain"]
%roll SigIdx = lcv = RollThreshold, block, "Roller", rollVars
declares the first block input (input zero), all the block’s RWorks, and the Block
parameter,
Gain.
Table 3-8: Roll Table Variables
Block Variable Description
Inputs U
ui
All inputs
input
i
Outputs Y
yi
All outputs
output
i
Parameters P
<param>/name
All parameters
parameter name
RWork RWork
<rwork>/name
All RWorks
name rwork
IWork IWork
<iwork>/name
All IWorks
name iwork
PWork PWork
<pwork>/name
All PWorks
name pwork
Mode M
Mode
Previous
Zero-Crossing
PZC
Zero-crossings