Campbell CS526 Manual Pagina 13

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 20
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 12
CS526 ISFET pH Probe
8.2.2.4 SplitStr Instruction
The SplitStr() instruction has the following syntax:
SplitStr(SplitResult,SearchString,FilterString,NumSplit,SplitOption)
SplitResult an array in which the split string will be stored.
SearchString the string on which this instruction will operate. This will
be the variable entered for the Dest parameter for the SerialIn
instruction (see above).
FilterString enter “String” (this value will be ignored because of the
SplitOption that will be used).
NumSplit enter 2
SplitOption enter 0. This splits out numeric values.
8.2.3 Example Program
The following is a CR1000 program that measures the CS526. This program
assumes the CS526 is connected to COM1 (C1 / TX and C2 / RX) on the
CR1000.
'CR1000 Series Datalogger
'Declare variable for PH measurement in mV
Public pHCount
'Declare variables for serial input from sensor
Dim rawstring As String * 20, pHDigit(2)
'Main Program
BeginProg
'Set up one of the datalogger's ports for serial communication
SerialOpen ( Com1,2400,16,0,41)
'Establish program scan rate of 60 seconds
Scan (60,Sec,0,0)
'Send get data command to CS526
SerialOut (Com1,"1M1!"&CHR(13),"",0,0)
'Set up CR1000 COM1 to receive incoming serial data.
'Set timeout to maximum 200 ms
SerialIn (rawstring,Com1,20,0,20)
'Split out numeric mV value for pH from string input
SplitStr (pHDigit(),rawstring,"String",2,0)
pHCount = pHDigit(2)
NextScan
EndProg
8.2.4 Programming for Calibration
To output in pH units instead of millivolts, enter the offset and multiplier into
the datalogger program. Simple program instructions can be used to make the
required periodic calibration easier. See Appendix A for an example program.
9. Calibration
Calibration should be carried out according to the detailed procedure outlined
in Appendix A. The calibration should utilize two or more pH standards, listed
in Table 9-1, which are available from Campbell Scientific.
7
Vista de pagina 12
1 2 ... 8 9 10 11 12 13 14 15 16 17 18 19 20

Comentarios a estos manuales

Sin comentarios