Read Values

Allows reading the values of the variables passed in variables_list. Also, it allows adding these

variables (if they do 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 read, it is possible to use a string (one variable name) instead of a list.

Returns

Union[float, list[float]]: A list of values read corresponding to variables_list respectively.

Example

**| # Example 1
${Current Value}= Read Values variable_name
# Example 2
${variables_to_check} = Create List variable_name1 variable_name2 variable_name3 variable_name4
${values} = Read Values ${variables_to_check}**