User guide
SAA CR Logger Integration Guide
May 2012 10
6. Compiling SAA Program Files
Once the main program has been successfully generated, it can be viewed using the LoggerNet ‘CRBasic
Editor’. At this time, it is also possible to add other code for instruments or powering the SW12V port on
the logger. Once the code has been added, it should be compiled to make sure that there are no errors.
To successfully compile the new program, the SAA_Include file generated with the program is also
required. The SAA_Include file should be placed in the same directory as the main program to avoid
compilation errors. The SAA_Include file will not successfully compile alone, it gets compiled as part of
the main program. Once the two files are located within the same directory, it can be attempted to save
and compile the program as illustrated in Figure 6.1.
Note: The SAA_Include file is not meant to compile on its own. The SAA_Include file should be
placed in the same directory as the main program file. When the SAA_Communicator program is
compiled, the SAA_Include is referenced and is compiled as well. Compile errors will appear if it is
attempted to compile the SAA_Include file.
Figure 6.1: Saving and Compiling the SAA logger program.
Note: When using other sensors with the CR1000, it is advised to add the necessary code to the
CR1000 program generated for the SAA rather than trying to integrate the SAA specific program
with the other sensors. Appendix I provides examples of integrating other sensors.
7. Uploading Program Files to the CR1000
Once the program has successfully compiled, both the program file and the SAA_Include file must be
uploaded to the CR1000 before the main program is run. This is accomplished in LoggerNet using the
‘Connect’ utility (Figure 7.1). Right click on the Station of interest and click on ‘File Control’ (the station
must be setup using the LoggerNet ‘Setup’ utility).