Piecewise-linear function#
Block appearance in REPEAT VISION#
The Piecewise linear function block creates a piecewise linear function based on an array of n+ 1 values y(t) (1):
1. Properties#
Property |
Default value |
Description |
Units of measurement |
|---|---|---|---|
Vector of time arguments |
0; 0.25; 0.5; 0.75 |
Time arguments vector |
s |
Vector of function values |
1; 0; 2; 1 |
Values |
- |
Periodicity |
On |
- |
- |
Sampling type: |
Fundamental project frequency decimation |
- |
- |
Decimation factor of project fundamental discretization frequency, available when selecting |
1 |
- |
- |
Sample time, available when selecting |
0.05 |
- |
s |
Sampling frequency, available when selecting |
20.0 |
- |
Hz |
2. Inputs and outputs#
Parameters |
input/output |
Description |
Units of measurement |
Port type |
|---|---|---|---|---|
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:
Description of Demo.
Tutorials
Library |
Tutorial name |
|---|---|
|
How-to guides
Section |
Guide name |
|---|---|
Energy |
Development of a model of the industrial circuit system of oil coolers of NPP with WCWR |