Section 7. Installation
124
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, 192000 (4 kB memory) or 87000 (2
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. 303).
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. 122).
Содержание CR800 Series
Страница 2: ......
Страница 4: ......
Страница 6: ......
Страница 32: ......
Страница 34: ......
Страница 54: ......
Страница 92: ......
Страница 190: ...Section 7 Installation 190 FIGURE 40 Running Average Frequency Response FIGURE 41 Running Average Signal Attenuation ...
Страница 310: ......
Страница 446: ...Section 8 Operation 446 8 11 2 Data Display FIGURE 100 CR1000KD Displaying Data ...
Страница 448: ...Section 8 Operation 448 FIGURE 102 CR1000KD Real Time Custom ...
Страница 449: ...Section 8 Operation 449 8 11 2 3 Final Storage Data FIGURE 103 CR1000KD Final Storage Data ...
Страница 450: ...Section 8 Operation 450 8 11 3 Run Stop Program FIGURE 104 CR1000KD Run Stop Program ...
Страница 452: ...Section 8 Operation 452 FIGURE 106 CR1000KD File Edit ...
Страница 456: ......
Страница 462: ......
Страница 523: ...Section 11 Glossary 523 FIGURE 116 Relationships of Accuracy Precision and Resolution ...
Страница 524: ......
Страница 526: ......
Страница 556: ......
Страница 558: ......
Страница 560: ......
Страница 597: ......