Campbell CR800 Dokumentacja Strona 178

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 324
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 177
Section 7. Measurement Instructions
just as in decimal) and the source is 5 decimal (binary 101) port 3 will be set
high and port 2 will be set low. The mask indicates that only 3 and 2 should be
set. While the value of the source also has a 1 for port 1, it is ignored because
the mask indicates 1 should not be changed.
Example
WriteIO (&B100, &B100) ' Set port 3 high.
Parameter
& Data Type
Enter
Mask
Constant
The Mask allows the read or write to only act on certain ports. The Mask is
ANDed with the value obtained when reading and ANDed with the source
before writing.
Source
Constant
Variable
The Variable or number that is to be written to the I/O ports.
7.8 Specific Sensors
CS110 ( Dest, Leakage, Status, Integ, Mult, Offset )
The CS110 instruction is used to measure an electric field by means of a
CS110 electric field meter.
See the CRBasic Editor or the CS110 manual for details on the instruction.
CS616 (Dest, Reps, SEChan, Port, MeasPerPort, Mult, Offset )
The CS616 instruction is used to enable and measure a CS616 water content
reflectometer. This instruction outputs a period measurement in microseconds.
Parameter
& Data Type
Enter
Dest
The Dest parameter is the variable or variable array in which to store the results
of the measurement. Dest must be dimensioned to at least the number of Reps.
Reps
The Reps parameter is the number of measurements that should be made using
this instruction. If Reps is greater than 1, Dest must be an array dimensioned to
the size of Reps.
SEChan
The SEChan parameter is the number of the single-ended channel on which to
make the first measurement. If the Reps parameter is greater than 1, the
additional measurements will be made on sequential channels.
Port
The Port parameter is the control port (1-8) that will be used to enable the CS616
sensor.
MeasPerPort
The MeasPerPort parameter is the number of control ports to be used to control
the CS616 sensor(s). If Reps is set to 4, MeasPerPort = 4 will result in the same
port being used for all measurements. MeasPerPort = 1 will result in four
sequential ports being used for the measurements. MeasPerPort = 2 will result in
one port being used for the first two measurements, and the next port being used
for the next two measurements.
7-24
Przeglądanie stron 177
1 2 ... 173 174 175 176 177 178 179 180 181 182 183 ... 323 324

Komentarze do niniejszej Instrukcji

Brak uwag