Download USB Data Logger User Manual

Transcript
'=='
Equality
$A==12 (the result is non zero if $A is equal to 12, 0 otherwise)
'!='
Non Equality
$A!=12 (the result is non zero if $A is not equal to 12, 0 otherwise)
'>='
Greater than or $A>=12 (the result is non zero if $A is greater than or equal to 12, 0
equal to
otherwise)
'<='
Less than or $A<=12 (the result is non zero if $A is less than or equal to 12, 0
equal to
otherwise)
'>'
Greater than
$A>12 (the result is non zero if $A is greater than 12, 0 otherwise)
'<'
Less than
$A<12 (the result is non zero if $A is less than 12, 0 otherwise)
&
Address of
This operator returns the address of a variable.
#
Size of
This operator returns the size of a variable.
'='
Assignment
$A=23; (Assign the value 23 to variable $A)
Local Variables & Global Variables
Local variables' names begin with a single '$' character, followed by a letter and then any number of
letters and numbers. Global variables' names begin with two '$' characters. Note that arguments to
local functions are specified with a single '$' character followed by a decimal number (indicated the
place in the argument list, for example $1 specifies the first argument passed to the local function,
etc.).
Local String Variables & Global String Variables
Local string variables' names begin with a single '*' character, followed by a letter and then any
number of letters and numbers. Global variables' names begin with two '**' characters.
Local Functions & Global Functions
Local functions' names begin with a single '@' character, while global functions' names begin with
two '@' characters. There are many defined global functions for controlling many aspects of the
data logger. See below for a number of example scripts that show how to use the built in commands.
Define Constants
Define constants can be redefined at compile time, but the compiler will issue a warning if this is
the case (note that warnings are not shown unless the Verbose check box is checked). Define
constants' names begin with a single '#' character. The following define constants are built in (note
in particular, the defined constants which are PRINT FUNCTION arguments, which allow you to
log important information along with your data, including the time:
Syntax:
Value :
Effect:
#A0
0, 0x00
analog channel A0 (multiplexed with digital channel D4)
Syntax:
Value :
Effect:
#A1
1, 0x01
analog channel A1 (multiplexed with digital channel D5)
Syntax:
Value :
Effect:
#A2
2, 0x02
analog channel A2