chooseOpi("SimGaussian")
if (!is.null(opiInitialize(sd=2, display=c(-30,30,-30,30))))
stop("opiInitialize failed")
if (!is.null(opiSetBackground(col="white",gridCol="grey")))
stop("opiSetBackground failed, which is very surprising!")
chooseOpi("Octopus900")
oi <- opiInitialize(eyeSuiteJarLocation="c:/EyeSuite/",
eyeSuiteSettingsLocation="c:/Documents and Settings/All Users/Haag-Streit/",
eye="left")
if (!is.null(oi))
stop("opiInitialize failed")
if (!is.null(opiSetBackground(fixation=.Octopus900Env$FIX_CENTRE)))
stop("opiSetBackground failed")
if (!is.null(opiSetBackground(fixation=.Octopus900Env$FIX_RING, fixIntensity=0)))
stop("opiSetBackground failed")
if (!is.null(opiSetBackground(color=.Octopus900Env$MET_COL_BY)))
stop("opiSetBackground failed")
if (!is.null(opiSetBackground(lum=.Octopus900Env$BG_100, color=.Octopus900Env$MET_COL_RW)))
stop("opiSetBackground failed")
opiClose()
Run the code above in your browser using DataLab