LINPUT obtains a line of data from HUNTER’s RS-232 port.
LINPUT [;][“prompt string”;] variable name
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, B and C with the prompt message:
PARAMETER VALUES ?
Note that input lines are always terminated on reception of a carriage return (CR) character.
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.
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.
While the HUNTER is waiting for the first character to be received from the port, it will ‘bleep’ at 30 second intervals.