Campbell CS526 Instrukcja Obsługi Strona 16

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 15
CS526 ISFET pH Probe
Probe output is “Counts”. A corrected multiplier and offset are
required to provide an output in pH units (see Appendix C,
Calibration
(p. C-1)).
7.2.3 Instruction Descriptions
7.2.3.1 SerialOpen() Instruction
The SerialOpen() instruction has the following syntax:
SerialOpen(ComPort,BaudRate,Format,TXDelay,BufferSize)
ComPortthe datalogger COM port in which the probe is connected.
BaudRatechoose 2400
Formatchoose 16, which is TTL Logic; No parity, one stop bit, 8 data
bits; No error checking
TXDelayenter 0
BufferSizeenter at least twice the number of maximum expected
characters + 1, which is 41.
7.2.3.2 SerialOut() Instruction
The SerialOut() instruction has the following syntax:
SerialOut(ComPort,OutString,WaitString,NumberTries,TimeOut)
ComPortthe datalogger COM port in which the probe is connected.
OutStringuse "1M1!"+CHR(13) for the OutString when the default
probe address of 1 is used.
WaitStringenter the null (“”) WaitString to tell the datalogger to wait
for the echo of each character in the OutString
NumberTriesenter 0
TimeOutspecifies the time, in 0.01 seconds, that the datalogger should
wait for the WaitString or echo of each character in the OutString (0
is used in the example program).
7.2.3.3 SerialIn() Instruction
The SerialIn() instruction has the following syntax:
SerialIn(Dest,ComPort,TimeOut,TerminationChar,MaxNumChars)
Destspecifies the variable in which the incoming data will be stored.
Please note that in the beginning of the CRBasic program, this
variable needs to be declared as ASCII string format (see example
program in Appendix B, Example Program
(p. B-1))
ComPort—the datalogger COM port in which the probe is connected.
TimeOut20 should be adequate, which gives a 200 ms maximum delay
time. The TimeOut parameter is used to specify the amount of time,
in 0.01 seconds, that the datalogger should wait before proceeding to
the next instruction.
TerminationCharenter 0
MaxNumChars20 should be adequate (specify the maximum number of
characters to expect per input)
NOTE
8
Przeglądanie stron 15
1 2 ... 11 12 13 14 15 16 17 18 19 20 21 ... 27 28

Komentarze do niniejszej Instrukcji

Brak uwag