Section 3. Understanding How the SDM-SIO4 Handles Data
For simple applications the
More complicated applications require configuration of the
Thus when the datalogger needs to send out long or complicated data strings it only needs to send a short command to the
3.1 Introduction
For collection of data from an intelligent sensor the datalogger programming is typically broken down into several steps, which might be:
1.Set up and configure the serial ports, e.g. baud rate, parity, handshaking. This can be done by one call of the datalogger instruction either at program compilation (so it is done only once) or perhaps in a subroutine which is called when a flag is toggled.
2.Use a second call of the instruction to tell the
3.At some point later in the program use a third call to collect the
Before examining the detail of the datalogger instruction it is necessary to understand the data output formatter and the input filters. These work in principle (and in certain details) like the formatting and filtering options used to write and read data from files in some
3.1.1 Method of Entering Special / Control Characters
Before going on to discuss filters, you should understand how to enter special / control characters.
To enter a control character in the range of
FF.For example, ‘&de’ would be character 222 decimal. To use ‘&’ within the string you must type ‘&&’ (i.e. && = & when in a string).