1 crbasic programming, 1 trigger sampler, 2 sense sampler event – Campbell Scientific 10164-L Water Sampler Control Cable for use with Isco and Sigma Autosamplers User Manual
Page 11: Crbasic programming, Trigger sampler, Sense sampler event, 1. wiring for crbasic triggering sampler example, 2. wiring for crbasic sampler event marker example

10164-L Sampler Control Cable for use with Isco and Sigma Autosamplers
4.1 CRBasic Programming
4.1.1 Trigger Sampler
To trigger the sampler, the datalogger program must set the port high, delay for
at least 0.5 seconds, and then set the port low.
TABLE 4-1. Wiring for CRBasic
Triggering Sampler Example
Color Description CR800, CR850, CR1000, or CR3000
Purple Ground
Yellow Control Port C2
Red
Power
12V
Clear
Shield
For example, if control port 2 is used (see TABLE 4-1), a datalogger program
that includes the following CRBasic instructions will trigger the sampler:
PortSet(2,1)
Delay(0,50,mSec)
PortSet(2,0)
Above is only a portion of the CRBasic program.
4.1.2 Sense Sampler Event
To sense the sampler event, use the
PulseCount() instruction with the PConfig
parameter set to high frequency (code 0). The value stored in the variable
should be totalized.
The following example program will sense the sampler events when the cable
is wired to pulse channel 1 (see TABLE 4-2).
TABLE 4-2. Wiring for CRBasic
Sampler Event Marker Example
Color
Description
CR1000
Purple
Ground
G
Orange
Pulse
P1
Clear
Shield
NOTE
5