User`s guide

5- 14 Agilent EasyEXPERT Users Guide Vol. 1, Edition 1
Built-in Programming Tool
Built-in Functions
storeAt(A,B,C,D) Finds a data element in the expression A, and replaces it with the D value, and
returns the result vector data. The data element is specified by the indices B and C.
B is the index for the primary plane of a two-dimensional array and C is the index
for the secondary plane. The index number starts from 1. The following example
replaces the A[5, 5] value with the D value and enters the result vector data to the
variable E.
Example E=storeAt(A,5,5,D)
Data type A: vector or numeric, B, C, D: numeric, E: vector.
string(A) Translates the expression A to a string data, and returns it.
Example B=string(A)
Data type A: numeric or module, B: string.
NOTE
Translating the variable defined with the numeric-symbol assignment
If the argument of the string function is a numeric variable defined with the
numeric-symbol assignment, the string function execution result will be the symbol
assigned to the numeric value, not the string value just translated from the numeric
value. The numeric-symbol assignment is defined in the
“Test Specification” on
page 3-5.
For the following example setup of the numeric-symbol assignment,
string(Mode) execution result at Mode=0 is the string OFF, not the string 0.
Parameter Mode, Value=0, Symbol=OFF
substring(A,B,C) Extracts a string from the string A, and returns it. B is the index used to specify the
first character to extract, and C is the number of characters to extract. The index
number starts from 0. If B or C is not an integer, digits over the decimal point are
used as the integer. The following example returns G.
Example D=substring("AGILENT",1,1)
Data type A: string, B, C: numeric, D: string.
swmToModule(A) Searches the measurement module connected to Agilent B2200/E5250 switching
matrix input port number A. And returns the module name.
Example B=swmToModule(A)
Data type A: string (Input port number 1 to 14), B: module.
tan(A) Returns the tangent value of the expression A.