8 editing comments, instructions, and expressions, 9 cut, copy, paste, and clipboard options, 3 library files – Campbell Scientific LoggerNet Datalogger Support Software User Manual

Page 283: 4 documenting a dld file, Cut, copy, paste, and clipboard options -65, Library files -65, Documenting a dld file -65

Advertising
background image

Section 7. Creating and Editing Datalogger Programs

7.4.2.8 Editing Comments, Instructions, and Expressions

To edit Comments, Expressions, and Instruction parameters, move the cursor

to the appropriate text and retype it. To delete an instruction when the cursor is

somewhere within the instruction, select Edit | Delete Instruction or press

<Shift> <Del>. An instruction or block of instructions can also be selected and

deleted with the delete key. The entire instruction must be selected or an error

message will be returned.

7.4.2.9 Cut, Copy, Paste, and Clipboard Options

Edit | Delete , Edit | Cut, Edit | Copy, and Edit | Paste allow sections of the

program to be deleted, moved, or copied to another area of the program or

between programs. Edit | Show Clipboard shows the contents of the clipboard.

You cannot move, copy, delete or comment out protected text

(Tables, Execution Intervals) or partial instructions. To move,

copy or delete an Instruction, the entire instruction, including all

of the parameters, must be selected.

Cutting and pasting between datalogger programs should only be between

programs for the same datalogger type. Instructions and parameters may differ

between dataloggers. The compiler will catch many of these errors; however,

this may be at the expense of much time and confusion.

7.4.3 Library Files

Library files can be created to store portions of programs, which can then be

inserted into a different program. Library files are useful if you want to write

different programs for the same sensor set, or it you have several stations that

have similar, but not identical, sensor sets.

To create a library file, select the text to be stored and then select Edit | Save

To Library File. When the window appears, type in the library file name. To

insert a library file in a program, move the cursor to the desired insertion point

and select Edit | Insert Library File.

Library files created for one type of datalogger type should not be

used in programs for a different datalogger type; i.e., a library file

for a CR10X-TD should not be used in a program for a CR10X or

a CR510-TD. Instructions differ among dataloggers, and bringing

in an invalid instruction to a datalogger could result in errors.

7.4.4 Documenting a DLD File

The CSI file is the file created by Edlog that is used to generate the DLD code

and other files. If for some reason your CSI file is missing, you can import the

DLD file into Edlog to create another editable CSI file. From the Edlog menu

select File | Document DLD. Select the DLD file to be imported and remember

to save the file to create a new CSI file.

NOTE

NOTE

7-65

Advertising