Toggle
In this block, at each activation the output is toggled between quot;Firstquot; and quot;Secondquot; values. This action is useful for generating non periodic square wave signals.
Library
SignalGenerators
Description
In the Toggle block, at each activation the output is toggled between quot;Firstquot; and quot;Secondquot; values. This action is useful for generating non periodic square wave signals. This block is also useful to generate synchronous square waves with SampleClock activation.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
firstvalue | First value | Matrix | ||
secondvalue | Second value | Matrix | ||
ot | Output/Parameters datatype | String | 'double' |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
Port 1 | explicit | output | 1 | |
Port 2 | activation | input | 1 |
Advanced Properties
Name | Value | Description |
---|---|---|
always active | no | Time Dependency = standard mode activated |
direct-feedthrough | no | |
zero-crossing | no | |
mode | no | |
continuous-time state | no | |
discrete-time state | yes |