<<<<<<<<<<<<<<<<<

hpbbox(devices) Animation hpbbox(devices)

NAME

hpbbox - HP 32 button, button box controller

DESCRIPTION

The hpbbox class communicates with an HP 32 button, button box over the HP HIL interface. Each one of the 32 button (0-31) can have a LYMB action associated with it. When a button is pressed, the appropriate action is executed.

SUPERCLASS

object

MESSAGES

key= Specifies the current key to be set or queried.

key? Returns the current key.

action=, activate_action= Specifies the name of the action to be associated with the current key.

action?, activate_action? Returns the name of the action associated with the current key.

on! Starts the processing of events generated by the button box keys

off! Stops the processing of button box events

serial_port= Sets the serial port that the workstation communicates to the button box over.

serial_port? Gets the serial port that the workstation communicates to the button box over.

error? Returns 0 for no error, 1 for error, and 2 for warning

error_message? Returns a description of the last error

free! Closes connection to button box and frees the instance.

EXAMPLES

This example creates an action and then specifies a button box key that will execute this action. When the top, left key on the button box is pressed, a tick! will be sent to the some_action action.

actions new: some_action

tick_actions = `some_action print!;' ; hpbbox new: bbox

key=0 activate_action=some_action

on! ;

SEE ALSO

The $LYMB_ROOT/scripts/devices directory contains a script `bbox_ui.scr' which creates a MOTIF interface that looks like the HP button box. The interface allows either mouse clicks or selections on the button box to execute actions.


Please send comments and suggestions to
consult@rpi.edu