SG, SGI – Signal generators

Block SymbolsLicensing group: STANDARD
Qt SVG Document Exported by REXYGEN Studio y SG Qt SVG Document Exported by REXYGEN Studio RUN SYN y SGI

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. isig 1,2,3,5), a phase shift can be adjusted, which is set by the phase parameter within the range (0,2π). 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)

1 ....

SINE

2 ....

SQUARE

3 ....

SAWTOOTH

4 ....

RANDOM

5 ....

TRIANGLE

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)

1 ....

Hz

2 ....

rad/s

iphunit

Phase shift units  1

Long (I32)

1 ....

degrees

2 ....

radians

Output

y

Analog output of the block

Double (F64)

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