EasyManua.ls Logo

Husky Hunter - Page 238

Husky Hunter
499 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BASIC FUNCTIONS
SECTION 5. 13
LINPUT
5,13.6 Function LINPUT obtains a line of data from HUNTER's RS-232 port.
Syntax LINPUT [;] [ "prompt string"; l variable name
Examples LINPUT A
Inputs from the serial port a numeric value and places it
in variable A.
LINPUT "PARAMETER VALUES" A,B,C
Input the values of A, Band C with the prompt message:
PARAMETER VALUES
?
Remarks Note that input lines are always terminated on reception of
a carriage return (CR) character.
VER.V09F
LINPUT cannot be used as a direct statement.
A prompt message can be displayed by the LINPUT statement.
A string variable name or a literal string is required as
an argument. Multiple variables can be strung together,
separated by commas.
The characters input from the serial input port are NOT
echoed to the screen.
A comma following the prompt message will suppress
LINPUT's
'?' prompt.
NOTE: If LINPUT's argument is a simple variable and an
invalid entry is made, LINPUT will simply re-prompt without
an error message. An example is:
10 LINPUT A
HUNTER receives 'HELLO'. After 'CR', LINPUT generates a
loud 'bleep' and re-prompts on the next line.
NOTE: While the HUNTER is waiting for the first character
to be received from the port, it will 'bleep' at 30 second
intervals.
PAGE 5 - 69