SG, SGI – Signal generators
Block SymbolsLicensing group: STANDARD
Function Description
The SG and SGI blocks generate periodic functions according to the setting of the isig
parameter, which determines the type of signal: sine wave, square wave (with a duty cycle of
1), sawtooth signal, random signal (white noise with uniform distribution) or triangle
signal. The amplitude and frequency of the output signal y can be set using the amp
and freq parameters. The frequency can be specified in units of Hz or rad/s, as
determined by the ifrunit parameter. For sine, square, sawtooth and triangle signals (i.e.
), a
phase shift can be adjusted, which is set by the phase parameter within the range
. The
unit of phase shift (radians or degrees) is determined by the iphunit parameter.
The SGI block allows synchronization of multiple generators using the RUN and SYN inputs. The RUN parameter must be set to on to enable the generator, the SYN input synchronizes the generators during the output signal generation.
This block does not propagate the signal quality. More information can be found in the 1.4 section.
Input
RUN | Enable execution | Bool |
SYN | Synchronization signal | Bool |
Parameter
isig | Generated signal type 1 | Long (I32) |
|
|
|
amp | Amplitude 1.0 | Double (F64) |
freq | Frequency 1.0 | Double (F64) |
phase | Phase shift | Double (F64) |
offset | Value added to output | Double (F64) |
ifrunit | Frequency units 1 | Long (I32) |
|
|
|
iphunit | Phase shift units 1 | Long (I32) |
|
|
|
Output
y | Analog output of the block | Double (F64) |
[Previous] [Back to top] [Up]
2024 © REX Controls s.r.o., www.rexygen.com