04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Section 7. Installation<br />

<strong>Campbell</strong> <strong>Scientific</strong> recommends implementing one or both of the provisions<br />

described in "Include" File (p. 104) and Default.cr1 File (p. 106) to help preserve<br />

remote communication, or other vital settings.<br />

7.6.3.3.1 "Include" File<br />

The Include file is a CRBasic program file that resides in <strong>CR1000</strong> memory and<br />

compiles as an insert to the user-entered program. It is essentially a subroutine<br />

stored in a file separate from the main program file. It can be used once or<br />

multiple times by the main program, and by multiple programs. The Include file<br />

begins with the SlowSequence instruction and can contain any code.<br />

Procedure to use the Include file:<br />

1. write the Include file, beginning with the SlowSequence instruction followed<br />

by any other code.<br />

2. send the Include file to the <strong>CR1000</strong> using tools in the File Control menu of<br />

datalogger support software (p. 77).<br />

3. enter the path and name of the file in the Include File setting in the <strong>CR1000</strong><br />

using DevConfig or PakBusGraph.<br />

Figures "Include File" Settings via DevConfig (p. 104) and "Include File" settings<br />

via PakBusGraph (p. 105) show methods to set required Include file settings via<br />

DevConfig or via telecommunications. There is no restriction on the length of the<br />

Include file. CRBasic example Using an "Include File" to Control Switched 12 V<br />

(p. 105) shows a program that expects an Include file to control power to a modem;<br />

CRBasic example "Include File" to Control Switched 12 V (p. 105) lists the "Include<br />

File" code.<br />

Figure 43: "Include File" settings via DevConfig<br />

104

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!