beautypg.com

1 "include" file, Figure 43: "include file" settings via devconfig – Campbell Scientific CR1000 Measurement and Control System User Manual

Page 104

background image

Section 7. Installation

104 

 

 

Campbell Scientific recommends implementing one or both of the provisions
described in "Include" File

(p. 104)

and Default.cr1 File

(p. 106)

to help preserve

remote communication, or other vital settings.

7.6.3.3.1 "Include" File

The Include file is a CRBasic program file that resides in CR1000 memory and
compiles as an insert to the user-entered program. It is essentially a subroutine
stored in a file separate from the main program file. It can be used once or
multiple times by the main program, and by multiple programs. The Include file
begins with the SlowSequence instruction and can contain any code.

Procedure to use the Include file:

1. write the Include file, beginning with the SlowSequence instruction followed

by any other code.

2. send the Include file to the CR1000 using tools in the File Control menu of

datalogger support software

(p. 77).

3. enter the path and name of the file in the Include File setting in the CR1000

using DevConfig or PakBusGraph.

Figures "Include File" Settings via DevConfig

(p. 104)

and "Include File" settings

via PakBusGraph

(p. 105)

show methods to set required Include file settings via

DevConfig or via telecommunications. There is no restriction on the length of the
Include file. CRBasic example Using an "Include File" to Control Switched 12 V

(p. 105)

shows a program that expects an Include file to control power to a modem;

CRBasic example "Include File" to Control Switched 12 V

(p. 105)

lists the "Include

File" code.

Figure 43: "Include File" settings via DevConfig