beautypg.com

Datalogger program creation with crbasic editor -1 – Campbell Scientific PC400 Datalogger Support Software User Manual

Page 9

background image

Table of Contents

8.4.5 Datalogger

Serial Port Settings ............................................... 8-24

8.4.6 PakBus

Settings ...................................................................... 8-24

8.4.6.1 Network........................................................................ 8-24
8.4.6.2 Beacon

Intervals........................................................... 8-25

8.4.6.3 Neighbor Filter ............................................................. 8-25
8.4.6.4 Allocate General Purpose File Memory ....................... 8-25

9. Datalogger Program Creation with CRBasic

Editor ......................................................................9-1

9.1 Overview.......................................................................................... 9-1
9.2 Inserting

Instructions........................................................................ 9-2

9.2.1 Parameter

Dialog Box............................................................... 9-2

9.2.2 Right-Click

Functionality ......................................................... 9-4

9.3 Toolbar............................................................................................. 9-5

9.3.1 Compile..................................................................................... 9-7
9.3.2 Compile, Save, and Send .......................................................... 9-8
9.3.3 Conditional

Compile and Save................................................ 9-11

9.3.4 Templates................................................................................ 9-11
9.3.5 Program

Navigation

using BookMarks and GoTo.................. 9-12

9.3.6 CRBasic

Editor

File Menu...................................................... 9-12

9.3.7 CRBasic

Editor

Edit Menu...................................................... 9-13

9.3.7.1 Other

Options ............................................................... 9-13

9.3.8 CRBasic

Editor

View Menu.................................................... 9-13

9.3.8.1 Editor

Preferences ........................................................ 9-13

9.3.8.2 Instruction

Panel

Preferences ....................................... 9-15

9.3.8.3 Other

Options ............................................................... 9-15

9.3.9 CRBasic

Editor

Tools Menu ................................................... 9-16

9.3.9.1 Edit

Instruction Categories........................................... 9-16

9.3.9.2 Constant

Customization ............................................... 9-17

9.3.9.3 Other

Options ............................................................... 9-19

9.3.10 Available Help Information .................................................... 9-20

9.4 CRBasic

Programming................................................................... 9-20

9.4.1 Programming

Sequence .......................................................... 9-20

9.4.2 Program

Declarations.............................................................. 9-21

9.4.3 Mathematical

Expressions ...................................................... 9-22

9.4.4 Measurement and Output Processing Instructions .................. 9-22
9.4.5 Line

Continuation ................................................................... 9-23

9.4.6 Inserting Comments Into Program .......................................... 9-23
9.4.7 Example

Program.................................................................... 9-24

9.4.8 Data

Tables ............................................................................. 9-24

9.4.9 The Scan — Measurement Timing and Processing ................ 9-26
9.4.10 Numerical Entries ................................................................... 9-27
9.4.11 Logical Expression Evaluation ............................................... 9-27

9.4.11.1 What is True? ............................................................... 9-27
9.4.11.2 Expression Evaluation.................................................. 9-28
9.4.11.3 Numeric Results of Expression Evaluation .................. 9-28

9.4.12 Flags........................................................................................ 9-29
9.4.13 Parameter Types...................................................................... 9-29

9.4.13.1 Expressions in Parameters............................................ 9-29
9.4.13.2 Arrays of Multipliers and Offsets for Sensor

Calibration ................................................................ 9-30

9.4.14 Program Access to Data Tables .............................................. 9-30

v