RCX.OPEN
Syntax RCX.OPEN port
(RCX.OPEN port "FALSE)

 
Explanation The RCX.OPEN command opens the specified port and establishes the communication channel between Logo and the RCX robot controller. Its output is TRUE if the communications channel to the RCX was initialized; otherwise it is FALSE. Make sure that the RCX is turned on and positioned near the Infrared transmitter. As soon as the communication channel has been established, all RCX commands are enabled.

Port value can be "USB for the USB port, 1 for serial port # 1 and 2 for serial port # 2.

If you supply FALSE as a second, optional input, the range of the Infrared transmitter is set to Near; otherwise, the range is set to Far.

This command causes the sliders and buttons which simulate sensor input on the RCX panel to become dimmed and non-functional.

See also RCX.CLOSE.

Examples RCX.OPEN "USB
Result: TRUE

TopIndex