7.6.7 scx::scx_set_parameter

This function sets the value of a parameter in components present in EVSs or in plug-ins.

  • bool scx_set_parameter(const std::string &name, const std::string &value);
  • template<class T>
    bool scx_set_parameter(const std::string &name, T value);
name
the name of the parameter to change. The parameter name must start with an EVS instance name for setting a parameter on this EVS, or with "*" for setting a parameter on all EVSs in the platform, or with a plug-in prefix (defaults to "TRACE") for setting a plug-in parameter.
value
the value of the parameter.

This function returns true when the parameter exists, false otherwise.

Note:

  • Changes made to parameters within System Canvas take precedence over changes made with scx_set_parameter().
  • You can set parameters during the construction phase, and before the elaboration phase. Calls to scx_set_parameter() after the construction phase are ignored.
  • You can change run-time parameters after the construction phase with the debug interface.
  • Specify plug-ins before calling the platform parameter functions, so that the plug-ins load and their parameters are available. Any plug-in that is specified after the first call to any platform parameter function is ignored.
Non-ConfidentialPDF file icon PDF version100965_1180_00_en
Copyright © 2014–2019 Arm Limited or its affiliates. All rights reserved.