Campbell Scientific CR6 CR6 Measurement and Control System - Page 128
Sending Programs
![]() |
View all Campbell Scientific CR6 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 128 highlights
Section 7. Installation 7.8.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. 128), comments are inserted into a program by preceding the comment with a single quote ('). Comments can be entered either as independent lines or following CR6 code. When the CR6 compiler sees a single quote ('), it ignores the rest of the line. CRBasic Example 4. Inserting Comments ' the insertion of comments into a program. Comments are 'placed in two places: to occupy single lines, such as this explanation does, or to be 'placed after a statement. 'Declaration of variables starts here. Public Start(6) 'Declare the start time array BeginProg EndProg 7.8.1.2.2 Conserving Program Memory One or more of the following memory-saving techniques can be used on the rare occasions when a program reaches memory limits: • Declare variables as DIM instead of Public. DIM variables do not require buffer memory for data retrieval. • Reduce arrays to the minimum size needed. Arrays save memory over the use of scalars as there is less "meta-data" required per value. However, as a rough approximation, TBD (TBD kB memory) variables will fill available memory. • Use variable arrays with aliases instead of individual variables with unique names. Aliases consume less memory than unique variable names. • Confine string concatenation to DIM variables. • Dimension string variables only to the size required. Read More More information on string variable-memory use and conservation is available in String Operations (p. 284). 7.8.2 Sending Programs The CR6 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 CR6 or .dld. Options for sending a program include the following: • Program Send (p. 505) command in datalogger-support software (p. 89) • Program send command in Device Configuration Utility (DevConfig (p. 116)) • Campbell Scientific mass storage device (p. 603) or memory card A good practice is to always retrieve data from the CR6 before sending a program; otherwise, data may be lost. 128
![](/manual_guide/products/campbell-scientific-cr6-cr6-measurement-control-a476969/128.png)