Write Values

Allows setting the values of the variables passed in variables_list using the values in

values_list respectively. Also, it allows adding these variables (if it does not exist) in the list of variables that will be plotted (plotted_signals).

Arguments Description

variables_list (Union[str, list[str]]): A list of strings, each string is a variable name in the fmu.

If only one variable is to be set, it is possible to use a string (one variable name) instead of a list.

values_list (Union[float, list[float]]): A list of values to be set to variables_list respectively.

If only one variable is to be set, it is possible to use one float instead of a list.

Returns

Examples

**| # Example 1
Write Values variable_name ${1.0}
# Example 2
${variables_to_set} = Create List variable_name1 variable_name2 variable_name3 variable_name4
${values_to_set} = Create List ${0} ${1} ${1} ${1}
Write Values ${variables_to_set} ${values_to_set}**