Add String Parameter Function
- Updated2022-11-22
- 1 minute(s) read
Add String Parameter Function
add_string_parameter adds a string parameter to the metadata object property parameters in the data log. These parameters document test conditions that apply to a measurement taken during the test run. If a parameter with the same name has already been added, the parameter value is replaced.
with run.Metadata() as data: for mode in modes: data.add_string_parameter("Mode", mode) for voltage in Vin: data.add_numeric_parameter("Vin", voltage, "V")
Parameter | Required? | Data Type | Description |
---|---|---|---|
parameter_name | Yes | String | Name of the string parameter to add. If parameter_name is set to an existing value, this function overwrites the existing parameter. |
parameter_value | Yes | String | Value of the string parameter to add. |
Note Do not use numeric values such as “5”, “10” or “10e-1” for string parameters.
These parameters may also be considered as numeric parameters.