The DAQFactory expression parser can also handle strings. This can be used to parse or calculate the string I/O types, or for other uses. String channels and variables are used just like regular channels and support subsetting and other expression features. You have to remember that the value is a string however, and must be converted before using math functions. For example: "89" * 3 is invalid, but StrToDouble("89") * 3 is valid. String constants can be entered by enclosing the desired string in quotes (single or double quotes). String constant arrays are created just like numeric arrays: {"string a","string b"}.
You can concatenate multiple strings using the add operator to make one string: "string a" + "string b" + "string c" which would result in "string astring bstring c". If you try and concatenate a string and a number, the number will automatically be converted to a string, i.e. "string a" + 3 will give you "string a3". The first part of the concatenation must be a string, however, so 3 + "string a" will return an error. You can instead use DoubleToStr(3) + "string a", or as a shortcut, include a blank string at the beginning to tell DAQFactory you are doing string concatenation and not trying to add numbers: "" + 3 + "string a"
There are many other functions available for string processing. Please see the section on String Functions for the complete list.
Note: While DAQFactory supports the storage of two and three dimensional string arrays, most of the DAQFactory functions do not work with string arrays with more than one dimension.