Real Time Automation, Inc.
27
1-800-249-1612
Example #3 - Parsing a message using the Parsing Delimiter option and Start Location and Length:
In this example, we are s
eparating the fields in the string “12.25,SP100,temp setpoint” using the comma
delimiter, the start, and length fields. The first value is being parsed from the 1
st
character for a length of
2 and stored into an integer data type. The second value is being parsed from the 3
rd
character of the
second comma-parsed field for the remainder of that field and stored into an integer data type. The
third value is being parsed starting from the 1
st
character of the third comma-parsed field for that entire
field and stored into a string. All 3 fields need to be present for the message to be valid. The output is
seen below: