Full Library / Source / Clock / Sequence
Block Name: Sequence
Code File Location: VisualSim/actor/lib/Sequence
o Produce a Sequence output with a shape specified by the parameters.
This actor produces a sequence of values, optionally periodically repeating them. The values parameter contains an Array that specifies the sequence of values to produce at the output. If the enable input port is connected, then it provides a boolean sequence that specifies whether to produce an output. If the enable is present and true, then the actor will produce the next output. Otherwise, it produces no output.
Compared with the Pulse block, this block can be enabled or disabled on each firing by providing a true or false input on the enable port.
Refer Sequence Demo Model.
Parameter |
Explanation |
Type |
Example |
value |
The values that will be produced on the output. |
Array |
{1} |
repeat |
The flag that indicates whether the sequence needs to be repeated. |
Boolean |
false |
holdLastOutput |
If the parameter is true, then the sequence is infinite, with the last value being repeated forever. |
Boolean |
true |
Port |
Explanation |
Type |
Output |
At every sequence edge a value is output on this port |
Integer |
enable |
The enable is an input port. If this port is connected, then its input will determine whether an output is produced in any given firing. |
Boolean |
Created with the Personal Edition of HelpNDoc: Easily create EBooks