Chapter 23XL-BASIC Programming GuideXL™ SERIES XL-BASIC Programming Guide 23-1Version Changes (available on version 2.07 of the XL series data logger)
23-10 XL-BASIC Programming Guide XL™ SERIESExample: goto 1000end1000print "code execution continues here"FOR / TO / NEXT This is a “For
XL™ SERIES XL-BASIC Programming Guide 23-11--- Sensor Input / Misc I/O Functions —MEASURE(x) Measure selected input. Some inputs are normally only me
23-12 XL-BASIC Programming Guide XL™ SERIES--- Com Port Commands —OPENCOM1 Turn on the RS232 drivers for com port 1, initialize I/O buffers making
XL™ SERIES XL-BASIC Programming Guide 23-13In the second example the two data values are separate based on the spacesinside the quotes, and the line i
23-14 XL-BASIC Programming Guide XL™ SERIESDIGITS(#) Set the number of digits to display to the right of the decimal point. Thedefault value is 2
XL™ SERIES XL-BASIC Programming Guide 23-15The following table lists the values that will be returned for the differentkey presses. KEY VALUE KEY VAL
23-16 XL-BASIC Programming Guide XL™ SERIES--- Data Card And File Commands —OPENFILE “filename” This command opens a file based on the parameter “
XL™ SERIES XL-BASIC Programming Guide 23-17WRITESDI This command is used to send text out the SDI-12 port to smart sensors. The command is preceded w
23-18 XL-BASIC Programming Guide XL™ SERIESCREATING XL-BASIC PROGRAMS:XL-BASIC programs are created using text editors like NOTEPAD that comes wit
XL™ SERIES XL-BASIC Programming Guide 23-19PC Menu Screen: XL-Basic Options.XL-BASIC Code Options (Esc to Return)L - Load Code: From PC Card to Me
23-2 XL-BASIC Programming Guide XL™ SERIESprogram includes all commands, comments, remarks, and spacing. If the size of the file becomestoo big t
23-20 XL-BASIC Programming Guide XL™ SERIESvariable for each basic program. The value of the variable is represented by the XX.XX above. The abov
XL™ SERIES XL-BASIC Programming Guide 23-21REM ASSIGN BATTERY VOLTAGE TO BASIC1 VARIABLE FOR LOGGINGBASIC1 = BATTREM CLOSE COM PORT 3CLOSECOM3ENDExamp
XL™ SERIES XL-BASIC Programming Guide 23-3Standard Input Variables:Variable Type DescriptionStage Read / Write The last measured stage value is return
23-4 XL-BASIC Programming Guide XL™ SERIESRead Only Variables:Variable Type DescriptionDate Read Only The date is returned in the format YYMMDD.00
XL™ SERIES XL-BASIC Programming Guide 23-5Math Functions:Basic Math Operations +, -, *, /. Standard Math operators% Modulo divide, returns the rem
23-6 XL-BASIC Programming Guide XL™ SERIESXL-BASIC Command Summary:PROGRAM FLOW / CONTROL COMMANDSCOMMAND DESCRIPTIONREM Add remarks to the progra
XL™ SERIES XL-BASIC Programming Guide 23-7COM PORT COMMANDSOPENCOMx Open RS-232 Com Port x for Input and Print operations. (x = 1 to 3)CLOSECOMx Turn
23-8 XL-BASIC Programming Guide XL™ SERIESDATA CARD AND FILE COMMANDSOPENFILE Open a data file for WRITEFILE operations.WRITEFILE Write text and d
XL™ SERIES XL-BASIC Programming Guide 23-9XL-BASIC Language Command Descriptions:Except for functions that have parameters using parentheses, all comm
Comentários a estes Manuais