Record

Top  Previous  Next

This section is where you configure the pattern recognition to determine what represents the start and end of a message sequence.

 

ascrec

Start Pattern

This value determines the start of relevant information. For example, let's say this is a data string read in on the RS232/Serial line:

CODE 17 START A04 Refrigeration Unit 003 Temperature High 84.31 N773 END A9.3178

 

You would want to use START as the Start Pattern as that begins the section of information relevant for your message. Start patterns are included in the record processed unless you specify the otherwise with the Start Offset.

 

Start Offset

This value determines how many characters before or after the identified start pattern to begin character processing. This field can be set to positive or negative values.

 

For instance, a value of 5 means that GetSerial will begin the data record 5 characters after the first character in the Start Pattern. A value of -5 means that GetSerial will begin the data record 5 characters before the first character the Start Pattern. To use our earlier example, if we don't want the word START to be a part of the record processed, we would set the Start Offset value to 5. That way, the data record begins five characters after the first character in START.

 

End Pattern

This value determines the end of relevant information For example, let's say this is a data string read in on the RS232/Serial line:

CODE 17 START A04 Refrigeration Unit 003 Temperature High 84.31 N773 END A9.3178

 

You would want to use END as the End Pattern as that ends the section of information relevant for your message. End patterns are included in the record processed unless you specify the otherwise with the End Offset.

 

End Offset

This value determines where in the data stream the record of relevant information ends and does so by determining how many characters before or after the identified End Pattern to begin. This field can be set to positive or negative values.

 

For instance, a value of 5 means that GetSerial will end the data record 5 characters after the last character in the End Pattern. A value of -5 means that GetSerial will end the data record 5 characters after the last character the End Pattern. To use our earlier example, if we don't want the word END to be a part of the record processed, we would set the Start Offset value to -3. That way, the data record ends three characters before the last character of END.