opiQueryDevice: Query device using OPI.

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/opi.r

Description

Generic function for getting details of the chosen OPI implementation that is set with chooseOpi().

Usage

1

Arguments

...

Implementation specific parameters. See details.

Details

Octopus600

If the chosen OPI is Octopus600, then this function returns information about the patient. See the Value section for details.

KowaAP7000

If the chosen OPI is KowaAP7000, then this function returns the current location of the pupil. See the Value section for details.

Value

Returns a list that contains isSim and implementation dependant data.

  1. isSim is TRUE if the device is a simulation, or FALSE if the device is a physical machine.

Octopus600

Returns a list of 10 items:

  1. answerButton [0 = not pressed, 1 = pressed ]

  2. headSensor [0 = no forehead detected, 1 = forehead detected ]

  3. eyeLidClosureLeft [0 = eye is open, 1 = eye is closed ]

  4. eyeLidClosureRight [0 = eye is open, 1 = eye is closed ]

  5. fixationLostLeft [1 = eye pos lost, 0 = eye pos ok)

  6. fixationLostRight [1 = eye pos lost, 0 = eye pos ok)

  7. pupilPositionXLeft [in px]

  8. pupilPositionYLeft [in px]

  9. pupilPositionXRight [in px]

  10. pupilPositionYRight [in px]

KowaAP7000

Returns a list of 4 items:

It also prints a list of constants that OPI knows about for the AP-7000.

Author(s)

Andrew Tuprin <[email protected]>

References

Please cite: A. Turpin, P.H. Artes and A.M. McKendrick "The Open Perimetry Interface: An enabling tool for clinical visual psychophysics", Journal of Vision 12(11) 2012.

http://perimetry.org/OPI

See Also

chooseOpi

Examples

1
2
3
4
chooseOpi("SimGaussian")
if (!is.null(opiInitialize(sd=2)))
    stop("opiInitialize failed")
print(opiQueryDevice())

OPI documentation built on Nov. 17, 2017, 6:15 a.m.