Constant#

block

Block appearance in REPEAT VISION#

 The Constant block generates a scalar signal that is constant in magnitude.

1.  Constant value control modes#

Mode

Description

Without control

The user simply enters a number in the properties

Switch

For binary values ​​(0/1) - switch next to the block

Regulator

For numeric values. Allows the user to change the constant’s value within a specified range using the slider next to the block.

2.  Properties#

Property

Default value

Description

Units of measurement

Constant value

2

-

-

Control mode:
Without control;
Switch;
Regulator

Without control

-

-

Value in OFF position

0

Available, when Control mode - Switch

-

Value in ON position

1

Available, when Control mode - Switch

-

Minimal value

0

Available, when Control mode - Regulator

-

Maximum value

100

Available, when Control mode - Regulator

-

Step

1

Available, when Control mode - Regulator

-

Show numerical value

On

Available, when Control mode - Regulator

-

Value in OFF position

Value in OFF position#

Value in ON position

Value in ON position#

Regulator

Regulator#

3.  Inputs and outputs#

Parameters

Input/output

Description

Units of measurement

Port type

Output

Output

-

-

Automation

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

4.  Code generation#

Important

Block supports C source code generation

Hint

The block supports displaying values ​​of coefficients on blocks instead of an image of the block itself

5.  Examples of use#

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

Tutorials

Library

Tutorial name

Heat exchange

Thermal conductivity in a flat wall;

Transient thermal conductivity in a steel rod;

Cooling of the part after heating in the furnace

Automation

Modeling a DC motor using blocks from the “Automation” section

Solving optimization problems

Introduction to Optimization;

Finding the root

How-to guides

Section

Guide name

Code generation

Traffic light on ARDUINO;

Description of the structure of the REPEAT VISION code generator source code

Control systems

Fuzzy logic control for valve of water supply to tank

Electrical equipment / Power industry

Implementation of DC insert and harmonic analysis of electric power system currents

Electrical equipment

Creating a battery management system

Machine learning approximation

Solving the two-dimensional unsteady-state heat equation with PINN

Решение оптимизационных задач

Determining the required water flow rate in a pipeline system