Section 7. Installation
134
Inserting Comments
'This program example demonstrates 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.6.2.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, 19200 (4 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. 327).
7.6.3 Programming Syntax
7.6.3.1 Program Statements
CRBasic programs are made up of a series of statements. Each statement
normally occupies one line of text in the program file. Statements consist of
instructions, variables, constants, expressions, or a combination of these.
"Instructions" are CRBasic commands. Normally, only one instruction is
included in a statement. However, some instructions, such as If and Then, are
allowed to be included in the same statement.
Lists of instructions and expression operators can be found in CRBasic Editor
Help
(p. 132).
Содержание CR3000 Micrologger
Страница 2: ......
Страница 3: ......
Страница 4: ......
Страница 6: ......
Страница 30: ......
Страница 34: ......
Страница 36: ......
Страница 96: ......
Страница 200: ...Section 7 Installation 200 FIGURE 42 Running Average Frequency Response FIGURE 43 Running Average Signal Attenuation ...
Страница 485: ...Section 8 Operation 485 8 11 2 Data Display FIGURE 110 Keyboard and Display Displaying Data ...
Страница 487: ...Section 8 Operation 487 FIGURE 112 CR1000KD Real Time Custom ...
Страница 488: ...Section 8 Operation 488 8 11 2 3 Final Storage Data FIGURE 113 Keyboard and Display Final Storage Data ...
Страница 489: ...Section 8 Operation 489 8 11 3 Run Stop Program FIGURE 114 Keyboard and Display Run Stop Program ...
Страница 491: ...Section 8 Operation 491 FIGURE 116 Keyboard and Display File Edit ...
Страница 495: ...Section 8 Operation 495 Low power standby whenever possible Low power bus sets bus and modules to low power ...
Страница 496: ......
Страница 502: ......
Страница 564: ...Section 11 Glossary 564 FIGURE 126 Relationships of Accuracy Precision and Resolution ...
Страница 566: ......
Страница 594: ......
Страница 598: ......
Страница 600: ......
Страница 602: ......
Страница 624: ......
Страница 642: ......
Страница 643: ......