Campbell Scientific CR1000KD CR1000 Measurement and Control System - Page 110
Sending Programs
View all Campbell Scientific CR1000KD manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 110 highlights
Section 7. Installation 7.7.1.2.1 Inserting Comments into Program Comments are non-executable text placed within the body of a program to document or clarify program algorithms. As shown in CRBasic example Inserting Comments (p. 110), comments are inserted into a program by preceding the comment with a single quote ('). Comments can be entered either as independent lines or following CR1000 code. When the CR1000 compiler sees a single quote ('), it ignores the rest of the line. CRBasic Example 4. Inserting Comments 'Declaration of variables starts here. Public Start(6) 'Declare the start time array 7.7.2 Sending Programs The CR1000 requires that a CRBasic program file be sent to its memory to direct measurement, processing, and data-storage operations. The program file can have the extension cr1 or .dld and can be compressed using the GZip algorithm before sending it to the CR1000. Upon receipt of the file, the CR1000 automatically decompresses the file and uses it just as any other program file. See the appendix Program and OS Compression for more information. Programs are sent with: • Program Send command in datalogger-support software (p. 77) • Program send command in Device Configuration Utility (DevConfig (p. 92)) • CF card (CRD: drive) or Campbell Scientific mass-storage media (USB: drive) A good practice is to always retrieve data from the CR1000 before sending a program; otherwise, data may be lost. Read More! See File Management (p. 340) and the CF card (CRD: drive) or Campbell Scientific mass-storage media (USB: drive) documentation available at www.campbellsci.com. 7.7.2.1 Preserving Data at Program Send When sending programs to the CR1000 through the software options listed in table Program Send Options that Reset Memory (p. 111), memory is reset and data are erased. When data retention is desired, send programs using the File Control Send (p. 454) command or CRBasic Editor command Compile, Save, Send in the Compile menu. The window shown in figure CRBasic Editor Program Send File Control Window (p. 111) is displayed before the program is sent. Select Run Now, Run On Power-up, and Preserve data if no table changed before pressing Send Program. Note To retain data, Preserve data if no table changed must be selected whether or not CF card (CRD: drive) or Campbell Scientific mass-storage media (USB: drive) be connected. 110