Learn R Programming

OPI (version 2.10.1)

opiClose: Close using OPI

Description

Generic function for closing the chosen OPI implementation that is set with chooseOpi()

Usage

opiClose(...)

compass.opiClose()

display.opiClose()

daydream.opiClose()

imo.opiClose()

kowaAP7000.opiClose()

octo600.opiClose()

octo900.opiClose()

phoneVR.opiClose()

simG.opiClose()

Arguments

...

Implementation specific parameters. See details.

Value

Returns NULL if close succeeded, otherwise an implementation-dependent error.

Compass

Returns a list of err, which is an error code, and fixations, which is a matrix with three columns: time (same as time_hw in opiPresent), x (degrees relative to the centre of the image returned by opiInitialise - not the PRL), y (as for x), and one row per fixation.

Display

Shuts the display.

Daydream

DETAILS

imo

DETAILS

KowaAP7000

DETAILS

Octopus600

DETAILS

Octopus900

Returns NULL.

PhoneVR

Closes the socket connection with the PhoneVR

SimGaussian

DETAILS

See Also

chooseOpi

Examples

Run this code
# NOT RUN {
chooseOpi("SimGaussian")
if (!is.null(opiInitialize(sd=2)))
  stop("opiInitialize failed")
if (!is.null(opiClose()))
  stop("opiClose failed, which is very surprising!")
# }

Run the code above in your browser using DataLab