Section 7. Installation
7.8.4.10 Multi-Statement Declarations
Multi-statement declarations are used to declare data tables, subroutines,
functions, and incidentals. Related instructions include the following:
•
DataTable() / EndTable
•
Sub() / EndSub
•
Function() / EndFunction
•
ShutDown / ShutdownEnd
•
DialSequence() / EndDialSequence
•
ModemHangup() / EndModemHangup
•
WebPageBegin() / WebPageEnd
Multi-statement declarations can be located as follows:
•
Prior to
BeginProg
,
•
After
EndSequence
or an infinite
Scan()
/
NextScan
and before
EndProg
or
SlowSequence
•
Immediately following
SlowSequence. SlowSequence
code starts executing
after any declaration sequence. Only declaration sequences can occur after
EndSequence
and before
SlowSequence
or
EndProg
.
7.8.4.10.1 Declaring Data Tables
Data are stored in tables as directed by the CRBasic program. A data table is
created by a series of CRBasic instructions entered after variable declarations but
before the
BeginProg
instruction. These instructions include:
DataTable()
'Output Trigger Condition(s)
'Output Processing Instructions
EndTable
A data table is essentially a file that resides in CR1000 memory. The file is
written to each time data are directed to that file. The trigger that initiates data
storage is tripped either by the CR1000 clock, or by an event, such as a high
temperature. The number of data tables declared is limited only by the available
CR1000 memory (prior to OS 28, the limit was 30 data tables). Data tables may
store individual measurements, individual calculated values, or summary data
such as averages, maxima, or minima to data tables.
Each data table is associated with overhead information that becomes part of the
ASCII file header (first few lines of the file) when data are downloaded to a PC.
Overhead information includes the following:
•
Table format
•
Datalogger type and operating system version
•
Name of the CRBasic program running in the datalogger
•
Name of the data table (limited to 20 characters)
•
Alphanumeric field names to attach at the head of data columns
This information is referred to as "table definitions."
140
Summary of Contents for CR1000
Page 2: ......
Page 4: ......
Page 6: ......
Page 32: ......
Page 36: ......
Page 38: ......
Page 40: ......
Page 60: ...Section 4 System Quickstart Figure 16 PC200W View Line Graph 60 ...
Page 96: ......
Page 98: ...98 ...
Page 302: ......
Page 453: ...Section 8 Operation Figure 115 Using the Keyboard Display 453 ...
Page 456: ...Section 8 Operation Figure 118 Real Time Custom 456 ...
Page 457: ...Section 8 Operation 8 8 1 3 Final Memory Tables Figure 119 Final Memory Tables 457 ...
Page 458: ...Section 8 Operation 8 8 2 Run Stop Program Figure 120 Run Stop Program 458 ...
Page 460: ...Section 8 Operation Figure 122 File Edit 460 ...
Page 461: ...Section 8 Operation 8 8 4 PCCard Memory Card Display Figure 123 PCCard CF Card Display 461 ...
Page 478: ......
Page 506: ......
Page 536: ......
Page 636: ......
Page 642: ......
Page 644: ......
Page 676: ......
Page 677: ......