SAMPLE CHOICE
CALL SEQUENCE
void psample_choice(
Pint ws_id, /* workstation identifier */
Pint choice_dev, /* choice device number */
Pin_status *status, /* (out) choice status */
Pint *choice /* (out) choice */
)
TYPES
typedef enum {
PIN_STATUS_NONE,
PIN_STATUS_OK,
PIN_STATUS_NO_IN
} Pin_status;
PHIGS STATE
(PHOP, WSOP, *, *).
EFFECT
Reads the current choice on the active input device, choice_dev.
Example:
/* Sample choice on workstation number 1 using device number 40 */
Pint ws_id,choice_dev;
Pint choice;
.....
ws_id = 1;
choice_dev = 40;
psample_choice(ws_id,choice_dev,&choice);
......
ERRORS
- 3
Ignoring function, function requires state (PHOP, WSOP,*,*)
- 54
- Ignoring function, the specified workstation is not open
- 61
- Ignoring function, specified workstation is neither of category INPUT nor
of category OUTIN
- 250
- Ignoring function, the specified device is not available on the specified
workstation
- 251
- Ignoring function, the function requires the input device to be in REQUEST
mode
- 252
- Ignoring function, the function requires the input device to be in SAMPLE
mode