Section 7. Installation
141
'Boolean Variable Examples
Public
Switches(8)
As Boolean
Public
FLAGS(16)
As Boolean
'String Variable Example
Public
FirstName
As String
* 16
'allows a string up to 16 characters long
DataTable
(TableName,True,-1)
'FP2 Data Storage Example
Sample
(1,Z,FP2)
'IEEE4 / Float Data Storage Example
Sample
(1,X,IEEE4)
'UINT2 Data Storage Example
Sample
(1,PosCounter,UINT2)
'LONG Data Storage Example
Sample
(1,PosNegCounter,Long)
'STRING Data Storage Example
Sample
(1,FirstName,String)
'BOOLEAN Data Storage Example
Sample
(8,Switches(),Boolean)
'BOOL8 Data Storage Example
Sample
(2,FLAGS(),Bool8)
'NSEC Data Storage Example
Sample
(1,CR3000Time,Nsec)
EndTable
BeginProg
'Program logic goes here
EndProg
7.6.3.3.2 Dimensioning Numeric Variables
Some applications require multi-dimension arrays. Array dimensions are
analogous to spatial dimensions (distance, area, and volume). A single-dimension
array, declared as,
Public VariableName(x)
with (x) being the index, denotes x number of variables as a series.
A two-dimensional array, declared as,
Public VariableName(x,y)
with (x,y) being the indices, denotes (x • y) number of variables in a square x-by-y
matrix.
Three-dimensional arrays, declared as
Public VariableName (x,y,z)
Summary of Contents for CR3000 Micrologger
Page 2: ......
Page 3: ......
Page 4: ......
Page 6: ......
Page 30: ......
Page 34: ......
Page 36: ......
Page 96: ......
Page 485: ...Section 8 Operation 485 8 11 2 Data Display FIGURE 110 Keyboard and Display Displaying Data ...
Page 487: ...Section 8 Operation 487 FIGURE 112 CR1000KD Real Time Custom ...
Page 491: ...Section 8 Operation 491 FIGURE 116 Keyboard and Display File Edit ...
Page 496: ......
Page 502: ......
Page 564: ...Section 11 Glossary 564 FIGURE 126 Relationships of Accuracy Precision and Resolution ...
Page 566: ......
Page 594: ......
Page 598: ......
Page 600: ......
Page 602: ......
Page 624: ......
Page 642: ......
Page 643: ......