
Section 7. Creating and Editing Datalogger Programs
7.3.4.5 Line Continuation
Line continuation allows an instruction or logical line to span one or more
physical lines. This allows you to break up long lines of code into more
readable “chunks”. Line continuation is indicated by one white space character
that immediately precedes a single underscore character as the last character of
a line of text. Following is an example of line continuation:
Public Temp, RH, WindSp, WindDir, _
BatteryV, IntRH, IntTemp, RainTot, _
RainInt, Solar
7.3.4.6 Inserting Comments Into Program
It is often useful to provide comments in your datalogger program so that when
you review the program at a later date, you will know what each section of
code does. Comments can be inserted into the program by preceding the text
with a single quote. When the program is compiled, the datalogger compiler
will ignore any text that is preceded by a single quote. A comment can be
placed at the beginning of a line or it can be placed after program code. If
Syntax Highlighting is enabled (Options | Editor Preferences | Syntax
Highlighting), commented text will appear formatted differently than other
lines of code.
'CR5000
'The following program is used to measure
'4 thermocouples
'VARIABLE DECLARATION
Dim TCTemp(4)
'Dimension TC measurement variable
Alias TCTemp(1)=EngineCoolantT
'Rename variables
Alias TCTemp(2)=BrakeFluidT
Alias TCTemp(3)=ManifoldT
Alias TCTemp(4)=CabinT
In the sample code above, the datalogger compiler will ignore the commented
text.
7-43
Summary of Contents for LoggerNet
Page 2: ......
Page 30: ...Preface What s New in LoggerNet 4 xxvi...
Page 32: ...Section 1 System Requirements 1 2...
Page 44: ...Section 2 Installation Operation and Backup Procedures 2 12...
Page 136: ...Section 4 Setting up Datalogger Networks 4 80...
Page 227: ...Section 7 Creating and Editing Datalogger Programs 7 9...
Page 298: ...Section 7 Creating and Editing Datalogger Programs 7 80...
Page 402: ...Section 9 Automating Tasks with Task Master 9 12...
Page 406: ...Section 9 Automating Tasks with Task Master 9 16...
Page 450: ...Section 11 Utilities Installed with LoggerNet Admin and LoggerNet Remote 11 22...
Page 454: ...Section 12 Optional Client Applications Available for LoggerNet 12 4...
Page 462: ...Section 13 Implementing Advanced Communications Links 13 8...
Page 482: ...Section 14 Troubleshooting Guide 14 20...
Page 570: ...Appendix F Calibration and Zeroing F 16...
Page 578: ...Appendix G Importing Files into Excel G 8...
Page 579: ......