
8- 14 Agilent B1500 User’s Guide, Edition 7
Built-in Programming Tool
Built-in Functions
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 6-5.
For the following example setup of the numeric-symbol assignment,
string(Mode) execution result at Mo
de=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 Agi
lent B2200 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.
Example
B=tan(A)
Data type A: numeric, B: numeric. Or A: vector, B: vector.
value(A) Translates the string A to a numeric data, and returns it. If the A value is invalid as
numeric literal, 0 is
returned.
Example
B=value(A)
Data type A: string, B: numeric.
Commentaires sur ces manuels