Previous Next Up Title Contents General Index Functions Index Bookshelf

SAMPLE VALUATOR

psample_val


CALL SEQUENCE

void psample_val (ws_id, val_dev, value)

INPUT PARAMETERS

Pint 	ws_id,
Pint 	val_dev,

OUTPUT PARAMETERS

Pfloat	*value

ARGUMENTS

ws_id,
Workstation identifier
val_dev,
Valuator device number
value
Valuator value

PHIGS STATE

(PHOP, WSOP, *, *).

EFFECT

Reads the current real number on the active input device, val_dev.

Example:

/* Sample valuator on workstation number 1 using device number 21 */
	Pint ws_id,val_dev;
	Pfloat value;
	.....
	ws_id = 1;
	val_dev = 21;
	psample_val(ws_id,val_dev,&value);
	......

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
252
Ignoring function, the function requires the input device to be in SAMPLE mode

SEE ALSO

set valuator mode, initialize valuator 3, request valuator, get valuator, await event, inquire valuator device state 3, inquire default valuator device state 3


Previous Next Up Title Contents General Index Functions Index Bookshelf