
CS526 ISFET pH Probe
instruction (see Section 8.2.2.2). Table 8-1 shows the “get data” command and
its response.
TABLE 8-1. Get Data Command and Response
Command Response
aMn!<CR>
Where:
a = probe address (factory
default is 1)
n = a single dummy character
(typically use 1)
a<value><CR><LF>
Where:
a = probe address (factory default is 1)
<value> = the probe’s reading for pH (in
millivolts).
8.2 CRBasic Programming
8.2.1 Instruction Sequence
A sequence of CRBasic instructions are used to measure the sensor. Table
8-2 shows the instruction sequence. Information about the instructions is
provided in Section 8.2.2 and an example program is provided in Section 8.2.3.
TABLE 8-2. Instruction Sequence
Instruction Function
SerialOpen()
Set up a datalogger port for serial communication (see
Section 8.2.2.1)
Scan()
Establish a scan rate
SerialOut()
Send “get data” command to the CS526.
See Section 8.1 and 8.2.2.2 for more information.
SerialIn()
Set up the COM port to receive the incoming serial data (see
Section 8.2.2.3).
Please note that in the beginning of the CRBasic program, the
variable used in the SerialIn instruction needs to be declared
as an ASCII string format.
SplitStr()
Split out numeric millivolt value for pH from the input string.
Probe output is “Counts”. A corrected multiplier and offset are
required to provide an output in pH units (see Appendix A).
NOTE
5
Komentarze do niniejszej Instrukcji