
AM16/32B Relay Analog Multiplexer
FIGURE 7. SCWIN (Short Cut for Windows Program Builder)
5.1 CRBasic Programming
The CR5000, CR800, CR850, CR3000, and CR1000 are programmed with
CRBasic; for details see the datalogger manual. While the instructions look
different than those used to program the older CR10X, CR23X, etc., they
perform similar functions. One difference that needs to be pointed out is that
with CRBasic measurement results are stored in a variable array, not numbered
input locations. In the older loggers the destination location is “indexed” so
that each pass through the measurement loop the result is stored in a higher
numbered location. In CRBasic the program must specifically increment an
index variable and use that variable to determine where each measurement is
stored.
GENERALIZED CRBASIC PROGRAMMING SEQUENCE:
ACTIVATE MULTIPLEXER/RESET INDEX
Portset (1 ,1) 'Set C1 high to Enable Multiplexer
I=0
BEGIN MEASUREMENT LOOP
SubScan(0,sec,16)
CLOCK PULSE AND DELAY
Portset (2,1 ) ‘Set port 2 high
13
Comentarios a estos manuales