8-54 Trio BASIC Commands
Input / Output Commands
Trio Motion Technology
Input device:
Example 1:
main:
IF KEY#1 THEN GOSUB read
...
read:
GET#1 k
RETURN
Example 2:
To test for a character received from the fibre optic network:
IF KEY#4 THEN GET#4,ch
LINPUT
Type:
Command
Syntax:
LINPUT variable
Description:
Waits for an input string and stores the ASCII values of the string in an array of vari-
ables starting at a specified numbered variable. The string must be terminated with
a carriage return <CR> which is also stored. The string is not echoed by the control-
ler.
Parameters:
None.
Example:
LINPUT VR(0)
Chan Input device:-
0
Serial port 0
1
Serial port 1
2
Serial Port 2
3
Fibre optic port (value returned defined by DEFKEY)
4
Fibre optic port (returns raw keycode of key pressed)
5
Motion Perfect user channel
6
Motion Perfect user channel
7
Motion Perfect user channel
8
Used for Motion Perfect internal operations
9
Used for Motion Perfect internal operations
10
Fibre optic network data