String functions, Comparestrings, Findsubstring – MTS Multipurpose Elite User Manual
Page 273
Syntax
SerialNumber(SignalName)
Parameter
Signal Name—The “SignalName” in signal functions is the internal name of the signal and must be quoted
or passed in as a string variable. To determine the internal name of a signal, select the Show Internal
Names check box in the Resources tab. The Name column shows the internal names.
Example
SerialNumber(“_Load”)
Unit Class
String
String Functions
This section provides basic reference information about the available string functions.
CompareStrings
Compares two strings, ignoring case.
Returns
The result is 0 if the strings are equal; negative if the first string is ordered before the second string, and
positive if the second string is redered before the first string.
Syntax
CompareStrings(string1, string2)
Parameters
string1-First string
string2-second string compared to string1.
Unit Class
String
FindSubString
Returns
Finds the index of the first occurrence of a substring within a string starting at or after a specified starting
index. Results is the index where the substring begins, or negative if not found.
Syntax
FindSubstring(substring, string, startIndex)
MTS TestSuite | 273
Working with Variables