Download XPert Basic SLL User Manual
Transcript
Table of Contents Introduction ..................................................................................................................................... 9 Overview ....................................................................................................................................... 10 Installing and Configuring BASIC.SLL ....................................................................................... 11 Installation................................................................................................................................. 11 Configuration ............................................................................................................................ 11 Program Start and Stop ......................................................................................................... 11 Recording Start and Stop ...................................................................................................... 12 Recurring Schedule ............................................................................................................... 12 Basic Blocks.......................................................................................................................... 13 Format Data for SatLink/GPRS/Iridium Transmission ........................................................ 14 Run Always Mode ................................................................................................................ 15 Program "Basics" .......................................................................................................................... 16 Using the Language ...................................................................................................................... 19 Comments ................................................................................................................................. 19 Statements and Functions ......................................................................................................... 19 Variables ................................................................................................................................... 19 Operators ................................................................................................................................... 21 Logical and Binary Operators ............................................................................................... 22 Math Functions ......................................................................................................................... 22 Conditional Statements and Loops ........................................................................................... 22 Aborting a Program................................................................................................................... 25 String Functions ........................................................................................................................ 25 Subroutines and Functions ........................................................................................................ 25 Recursion .............................................................................................................................. 26 Pass by Reference ................................................................................................................. 27 Public Subroutines and Functions ......................................................................................... 27 Calling Subroutines and Functions contained in a DLL ....................................................... 27 Date and Time ........................................................................................................................... 28 Debugging ................................................................................................................................. 29 Error Handling .......................................................................................................................... 30 File I/O ...................................................................................................................................... 31 Log I/O ...................................................................................................................................... 31 Serial I/O ................................................................................................................................... 31 Socket I/O ................................................................................................................................. 32 Digital I/O ................................................................................................................................. 32 Analog I/O ................................................................................................................................ 32 SDI I/O ...................................................................................................................................... 32 SSP Messaging.......................................................................................................................... 32 Satlink/GPRS/Iridium Formatting ............................................................................................ 32 Basic Tags ................................................................................................................................. 33 Basic Blocks And Basic Sensors .............................................................................................. 34 Readings .................................................................................................................................... 36 Run Always Mode .................................................................................................................... 37 Running a Program at System Start or Shutdown ................................................................ 37 Multi-threading ......................................................................................................................... 38 2