Engee documentation

Triangle Generator

Generation of a symmetrical triangular signal at regular intervals.

blockType: SubSystem

Path in the library:

/Physical Modeling/Electrical/Control/Sources/Triangle Generator

Description

Block Triangle Generator generates a symmetrical triangular signal with peak amplitude ±1. The figure shows how the parameters Frequency, Hz and Phase, deg affect the shape of the output signal.

triangle generator en

Ports

Output

# OUT_1 — generated output signal
scalar

Details

The generated symmetrical triangular signal, specified by the parameters.

Data types

Float64

Complex numbers support

No

Parameters

Main group

# Frequency, Hz — The frequency of the triangular signal

Details

The frequency of the triangular signal, measured in Hz.

Default value

1.0e3

Program usage name

frequency

Evaluatable

Yes

# Phase, deg — triangular signal delay

Details

The delay of the triangular signal, measured in degrees. If this parameter is set to 0, the signal starts with the amplitude −1 and it has a positive slope.

Default value

90

Program usage name

phase

Evaluatable

Yes

# Sample time, s — block sampling period

Details

The sampling period of the block, measured in seconds. Set the value 0 to implement a continuous block.

Default value

0

Program usage name

sample_time

Evaluatable

Yes