[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]
The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
REQUEST CHOICE (PHOP,WSOP,*,*)
Purpose
Use
Request Choice
to have the graPHIGS API execute a request to the
specified choice device.
The graPHIGS API returns the choice input value,
which is the current measure of the choice device.
A status of NONE means that a break action
occurred.
If the measure of the choice device indicates no
choice, then the graPHIGS API returns a status of NOCHOICE.
Otherwise, the graPHIGS API returns a status of OK
together with a choice number which the graPHIGS API sets
according to the current measure of the
choice device.
Language Bindings
C
preq_choice
(ws_id, choice_num,
in_status, choice) |
Pint ws_idWorkstation identifier.
Pint choice_numChoice device number (>=1).
Pin_status *in_statusChoice status
(0=PIN_STATUS_NONE,
1=PIN_STATUS_OK, 2=PIN_STATUS_NO_IN).
Pint *choiceRequested choice.
FORTRAN
PRQCH
(wkid, chdnr, stat,
chnr) |
integer wkidWorkstation identifier.
integer chdnrChoice device number (>=1).
integer statChoice status
(0=PNONE, 1=POK, 2=PNCHOI).
integer chnrChoice number (>=1).
Errors
- 3
- Function Requires State (PHOP,WSOP,*,*)
- 54
- Specified Workstation Is Not Open
- 61
- Specified Workstation Is Not Of Category Input Or Outin
- 250
- Specified Device Not Available On Workstation
- 251
- Function Requires Input Device To Be In Request Mode
Related Subroutines
Initialize Choice
Inquire Number Of Available Logical Input Devices
Set Choice Mode
[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]