Section 10. Troubleshooting
506
doubt. The PC compiler version is shown on the first line of the
compile results.
•
The program has large memory requirements for data tables or variables
and the CR3000 does not have adequate memory. This normally is
flagged at compile time, in the compile results. If this type of error
occurs, check the following:
o
Copies of old programs on the CPU: drive. The CR3000 keeps
copies of all program files unless they are deleted, the drive is
formatted, or a new operating system is loaded with DevConfig
(p.
o
That the USR: drive, if created, is not too large. The USR: drive
may be using memory needed for the program.
o
that a memory card (CF) is not available when a program is
attempting to access the CRD: drive. This can only be a problem if
a TableFile() or CardOut() instruction is included in the program.
10.5.2 Program Compiles / Does Not Run Correctly
If the program compiles but does not run correctly, timing discrepancies are often
the cause. Neither CRBasic Editor nor the CR3000 compiler attempt to check
whether the CR3000 is fast enough to do all that the program specifies in the time
allocated. If a program is tight on time, look further at the execution times.
Check the measurement and processing times in the Status table (MeasureTime,
ProcessTime, MaxProcTime) for all scans, then try experimenting with the
InstructionTimes() instruction in the program. Analyzing InstructionTimes()
results can be difficult due to the multitasking nature of the logger, but it can be a
useful tool for fine tuning a program.
10.5.3 NAN and ±INF
NAN (not-a-number) and ±INF (infinite) are data words indicating an exceptional
occurrence in datalogger function or processing. NAN is a constant that can be
used in expressions as shown in the following code snip that sets a CRBasic
control feature (a flag) if the wind direction is NAN:
If
WindDir = NAN
Then
WDFlag = False
Else
WDFlag = True
EndIf
NAN can also be used in conjunction with the disable variable (DisableVar) in
output processing (data storage) instructions as shown in CRBasic example Using
NAN to Filter Data
(p. 509).
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: ......