<< MAXPID CPGE - Xcos toolbox PLAGE_LINEAIRE_EXT >>

CPGE - Xcos toolbox >> CPGE - Xcos toolbox > PARAM_VAR

PARAM_VAR

Variation of parameters

Block screenshot

Contenu

Palette

Description

This block allows to assign multiple values to symbolic parameters defined in the context of Xcos.

In the menu 'Simulation', the 'Modify the context' dialog (or access by a right click on the background of the Xcos windows) allows to define symbolic parameters used in the block definition in Xcos.

The PARAM_VAR block allows to attribute a vector of values to these symbolic parameters.

Dialog box

Define symbolic parameters in the 'Modify the context' dialog and then inform the dialog box of the PARAM_VAR block.

For each symbolic parameter, the dialog box allows to remember the parameter name and to precise the list of values of this parameter.

From 1 to 3 parameters can be used (which already allows a large number of combinaisons).

The syntax of the dialog 'Modify the context' must be followed by giving a value to each defined symbolic parameter. However, this value is not used for the symbolic parameters defined in the PARAM_VAR block.

Default properties

Example 1

This example shows the use of the PARAM_VAR block to plot the evolution of the output of a first order function for a step input with amplitude equal to 1, for different values of the static gain K and of the time constant T.

By choosing 2 values for K and 3 values for T, 2 x 3 = 6 curves will be plotted.

Open the example in Xcos !

Interfacing function

Computational function

See also


Report an issue
<< MAXPID CPGE - Xcos toolbox PLAGE_LINEAIRE_EXT >>