Variation of parameters
CPGE - Analysis
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.
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.
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.
CPGE_TOOLBOX/macros/PARAM_VAR.sci
CPGE_TOOLBOX/macros/PARAM_VAR_sim.sci
CPGE_TOOLBOX/macros/Param_Var_pre_simulate.sci
CPGE_TOOLBOX/macros/Param_Temp_pre_simulate.sci
CPGE_TOOLBOX/macros/Param_Freq_pre_simulate.sci
REP_TEMP
SCOPE
Contexte