Rectangular pulse generator#

block

Block appearance in REPEAT VISION#

 This block is designed to generate rectangular signals. Parameters of the block are graphically depicted in the figure.

  • a - signal period;

  • b - signal duration;

  • c - signal amplitude;

  • d - time shift of the signal.

rectangularWave

Graphic representation of block parameters#

1.  Properties#

Property

Default value

Description

Units of measurement

a

500

Signal period

ms

b

250

Signal duration

ms

c

50

Signal amplitude

real number

d

0

Time shift of the signal

ms

Sampling type:
Fundamental project frequency decimation;
Sample time;
Sampling frequency

Fundamental project frequency decimation

-

-

Decimation factor of project fundamental discretization frequency, available when selecting Sampling type - Fundamental project frequency decimation

1

-

-

Sample time, available when selecting Sampling type - Sample time

0.05

-

s

Sampling frequency, available when selecting Sampling type - Sampling frequency

20.0

-

Hz

2.  Inputs and outputs#

Parameters

Input/output

Description

Units of measurement

Port type

Output

Output

Output signal

-

Automation

In order to see the connection capabilities of the block, you need to go to page Description of block ports

3.  Code generation#

Important

Block supports C source code generation

4.  Examples of use#

 Examples of using this block can be found in the following sections:

Tutorials

Library

Tutorial name

External models

Working with CSV files: exporting and importing simulation results

How-to guides

Section

Guide name

Code generation

Traffic light on ARDUINO

Electrical equipment

Creating a battery management system