<Variable> Element
This element allows you to set a variable that is in the script. To pass a variable to the script, include both the Name attribute and the associated Value attribute. If multiple variables are needed, use a separate <Variable> element to define each variable. The variable name with value are shown in the User Measurement Setup dialog. Any space character in the Name attribute is removed. When the XML file is loaded, FlexDCA does not confirm that the variable is in the script file.
Do not use spaces or hyphens when naming your variables.
|
<Variable> is an empty element. It does not accept any content between the opening and closing tags. All information is included in the element's attributes. Because this is an empty element, you can write it using a closing tag:
- <Variable Name = "Frequency" Value = "10.125E9"></Variable> <!-- Opening and closing tags -->
or with a self-closing opening tag:
- <Variable Name = "Frequency" Value = "10.125E9" /> <!-- Self closing tag -->
Notice in the above example that the opening element must end with the "/>" characters instead of the usual ">" character. The following line will result in an error:
- <Variable Name = "Frequency" Value = "10.125E9" > <!-- Illegal. Missing "/" character. No closing tag -->
Parent Elements
Child Elements
None
Attributes
Enclose attributes values in double quotes.
- Name
- The name of a script variable that will be passed to the script when the measurement is run.
- Value
- The value of the variable given in the Name attribute.
Example
- <Function>
- …
- <Variable Name="FType" Value="low" />
- <Variable Name="Frequency" Value="10.125e9" />
- <Variable Name="N" Value="42"></Variable>
- …
- </Function>