### SG, SGI – Signal generators

Block SymbolsLicensing group: STANDARD

Function Description
The SG and SGI blocks generate periodic signals of chosen type (isig parameter): sine wave, square, sawtooth and white noise with uniform distribution. The amplitude and frequency of the output signal y are given by the amp and freq parameter respectively. The output y can have a phase shift of $\mathtt{\text{phase}}\in \left(0,2\pi \right)$ in the deterministic signals ($\mathtt{\text{isig}}\in \left\{\mathtt{\text{1}},\mathtt{\text{2}},\mathtt{\text{3}}\right\}$).

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.

Inputs

 RUN Enable execution, run the binary sequence generation Bool SYN Synchronization signal Bool

Output

 y Analog output of the block Double (F64)

Parameters

 isig Generated signal type  $\odot$1 Long (I32) 1 .... Sine wave 2 .... Symmetrical rectangular signal 3 .... Sawtooth signal 4 .... White noise with uniform distribution amp Amplitude of the generated signal  $\odot$1.0 Double (F64) freq Frequency of the generated signal  $\odot$1.0 Double (F64) phase Phase shift of the generated signal Double (F64) offset Value added to the generated signal  $\odot$1.0 Double (F64) ifrunit Frequency units  $\odot$1 Long (I32) 1 .... Hz 2 .... rad/s iphunit Phase shift units  $\odot$1 Long (I32) 1 .... degrees 2 .... radians

2022 © REX Controls s.r.o., www.rexygen.com