1 "include" file, Figure 45: "include file" settings via devconfig – Campbell Scientific CR3000 Micrologger User Manual

Page 109

Advertising
background image

Section 7. Installation

109

 

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

(p. 109)

and Default.cr3 File

(p. 111)

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 CR3000 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 CR3000 using tools in the File Control menu of

datalogger support software

(p. 76).

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

using DevConfig or PakBusGraph.

Figures "Include File" Settings via DevConfig

(p. 109)

and "Include File" settings

via PakBusGraph

(p. 110)

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. 110)

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

CRBasic example "Include File" to Control Switched 12 V

(p. 111)

lists the "Include

File" code.

Figure 45: "Include File" settings via DevConfig

Advertising