|
|
| Vectorized | C | |
in the palette |
on the schematic |
The block is vectorized, it is a controlled source of sinusoidal voltage. It differs from the "Sine wave" block by the presence of a control input (StateFlag), as well as the fact that the signal parameters are set outside the block.
Inputs
- StateFlag – control input. The value 1 at the input corresponds to the normal operation of the block. 0 — the block is disabled, the SinusOut output is 0. 2 — pause, the the SinusOut output saves the last value;
- A – the amplitude of the sinusoidal signal;
- W is the frequency of the sinusoidal signal, Rad/sec;
- f – signal phase shift, Rad.
Outputs
- SinusOut – the main output of the block, has the current value of the sinusoidal signal depending on the model time, as well as the parameters set at the input of the block:
- CYCLETIME – an additional output activated in the block properties. It has the value of the current cycle time of the sine wave. It varies from zero to T, where T is the sine wave period.
Properties:
- Cycle time output – enables the auxiliary output of the block showing the current value of the sine wave cycle time. It varies from zero to T, where T is the sine wave period.