Documentation Home Page RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Group

Model Interaction, Parameters
Description

Change the value of one or more RT-LAB parameters using their path and name in the model.

Required Control

Parameter Control
Usage

parameterNames = (paramName1, paramName2, ...)

parameterValues = (paramValue1, paramValue2, ...)

RtlabApi.SetParametersByName (parameterNames, parameterValues)

Input
  • parameterNames: Tuple of parameters’ path and name to set values.
  • parameterValues: Tuple of parameters’ values to set.

Output

None

Exception
  • EOK: Success.
  • EPERM: Parameter control had not been granted to this client.
  • EBADF: Model not specified by previous Connect or SetCurrentModel.
  • ENOEXEC: Model is not loaded.
  • EINVAL: No parameter to set or invalid parameter id.
  • E2BIG: Too many parameters or values to modify.
  • ENOMEM: Memory allocation error.
  • ENOENT: Cannot open parameter file or parameter name not found.
  • EIO: Error sending the request or receiving the reply.
  • OP_API_MODEL_IO_TIMEOUT: Timed out waiting for reply from model.
  • OP_API_MODEL_IO_ERROR: Model is missing some or all processes or subsystems.
ExamplesSee example parameter1.
Related ItemsGetParametersDescription, GetParameterControl, GetParametersByName.
Modulesimport RtlabApi
  • No labels