Add String Parameter Method
- Updated2022-11-22
- 1 minute(s) read
Add String Parameter Method
AddStringParameter 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.
using (SetMetadata data = run.LogAppendedMetadata())
{
data.AddStringParameter("Mode", "Common Mode");
...
}
| Parameter | Required? | Data Type | Description |
|---|---|---|---|
| parameterName | Yes | String | Name of the string parameter to add. If parameterName is set to an existing value, this method will overwrite the existing parameter. |
| parameterValue | 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.