SMI RED eye tracking plugin 1.0
Classes | Defines | Typedefs | Enumerations | Functions

lib/iViewXAPI.h File Reference

The file contains the prototype declaration for all supported functions and data structs the customer needs to use. More...

Go to the source code of this file.

Classes

struct  SystemInfoStruct
 This struct provides information about the eyetracking system in use. More...
struct  CalibrationPointStruct
 This struct provides information about the current calibration point. More...
struct  EyeDataStruct
 This struct provides information about eye data. More...
struct  SampleStruct
 This struct provides information about gaze data samples. More...
struct  SampleStruct32
 This struct provides information about gaze data samples. More...
struct  EventStruct
 This struct provides information about the last eye event that has been calculated. More...
struct  EventStruct32
 This struct provides information about the last eye event that has been calculated. More...
struct  AccuracyStruct
 This struct provides information about the last validation. More...
struct  CalibrationStruct
 Use this struct to customize calibration behavior. More...
struct  REDStandAloneModeStruct
 Use this struct to customize RED operation mode. More...

Defines

#define DLLExport   __declspec(dllexport)
#define RET_SUCCESS   1
#define RET_NO_VALID_DATA   2
#define RET_CALIBRATION_ABORTED   3
#define ERR_COULD_NOT_CONNECT   100
#define ERR_NOT_CONNECTED   101
#define ERR_NOT_CALIBRATED   102
#define ERR_NOT_VALIDATED   103
#define ERR_WRONG_DEVICE   111
#define ERR_WRONG_PARAMETER   112
#define ERR_WRONG_CALIBRATION_METHOD   113
#define ERR_CREATE_SOCKET   121
#define ERR_CONNECT_SOCKET   122
#define ERR_BIND_SOCKET   123
#define ERR_DELETE_SOCKET   124
#define ERR_NO_RESPONSE_FROM_IVIEWX   131
#define ERR_INVALID_IVIEWX_VERSION   132
#define ERR_WRONG_IVIEWX_VERSION   133
#define ERR_WRONG_SDK_DLL   133
#define ERR_ACCESS_TO_FILE   171
#define ERR_SOCKET_CONNECTION   181
#define ERR_EMPTY_DATA_BUFFER   191
#define ERR_RECORDING_DATA_BUFFER   192
#define ERR_FULL_DATA_BUFFER   193
#define ERR_IVIEWX_IS_NOT_READY   194
#define ERR_IVIEWX_NOT_FOUND   201
#define LOG_LEVEL_BUG   1
#define LOG_LEVEL_iV_FCT   2
#define LOG_LEVEL_ALL_FCT   4
#define LOG_LEVEL_IV_COMMAND   8
#define LOG_LEVEL_RECV_IV_COMMAND   16
#define ET_PARAM_EYE_LEFT   0
#define ET_PARAM_EYE_RIGHT   1
#define ET_PARAM_PUPIL_THRESHOLD   0
#define ET_PARAM_REFLEX_THRESHOLD   1
#define ET_PARAM_SHOW_AOI   2
#define ET_PARAM_SHOW_CONTOUR   3
#define ET_PARAM_SHOW_PUPIL   4
#define ET_PARAM_SHOW_REFLEX   5
#define ET_PARAM_DYNAMIC_THRESHOLD   6
#define ET_PARAM_PUPIL_AREA   11
#define ET_PARAM_PUPIL_PERIMETER   12
#define ET_PARAM_PUPIL_DENSITY   13
#define ET_PARAM_REFLEX_PERIMETER   14
#define ET_PARAM_REFLEX_PUPIL_DISTANCE   15

Typedefs

typedef int(CALLBACK * pDLLSetCalibrationPoint )(struct CalibrationPointStruct calibrationPoint)
typedef int(CALLBACK * pDLLSetSample )(struct SampleStruct rawDataSample)
typedef int(CALLBACK * pDLLSetEvent )(struct EventStruct eventDataSample)

Enumerations

enum  ETDevice {
  NONE, RED, HiSpeed, MRI,
  HED, Custom
}

Functions

DLLExport int __stdcall iV_SetLicense (char *licenseKey)
 validates the customer license (only for OEM devices)
DLLExport int __stdcall iV_Start ()
 run iView X application and connects automatically (only on same computer)
DLLExport int __stdcall iV_Quit ()
 disconnects and closes iViewX
DLLExport int __stdcall iV_SendCommand (char etMessage[256])
 sends a remote command to iView X. Please refer to the iView X help file for further information about remote commands.
DLLExport int __stdcall iV_Connect (char sendIPAddress[16], int sendPort, char recvIPAddress[16], int receivePort)
 establishes a UDP connection to iView X. "iV_Connect" will not return until connection has been established. If no connection can be established it will return after three seconds.
DLLExport int __stdcall iV_IsConnected ()
 checks if connection to iView X is still established
DLLExport int __stdcall iV_Disconnect ()
 disconnects from iView X "iV_Disconnect" will not return until the connection has been disconnected.
DLLExport int __stdcall iV_GetSystemInfo (struct SystemInfoStruct *systemInfoData)
 updates "systemInfoData" with current system information
DLLExport int __stdcall iV_SetTrackingParameter (int ET_PARAM_EYE, int ET_PARAM, int value)
 sets iView X tracking parameters
DLLExport int __stdcall iV_StartRecording ()
 starts gaze data recording and scene video recording (if connected eyetracking device is "HED") "iV_StartRecording" does not return until gaze and scene video recording is started
DLLExport int __stdcall iV_StopRecording ()
 stops gaze data recording and scene video recording (if connected eyetracking device is "HED") "iV_StopRecording" does not return until gaze and scene video recording is stopped
DLLExport int __stdcall iV_ContinueRecording (char etMessage[256])
 pauses gaze data recording and scene video recording (if connected eyetracking device is "HED") "iV_ContinueRecording" does not return until gaze and scene video recording is continued
DLLExport int __stdcall iV_PauseRecording ()
 pauses gaze data recording and scene video recording (if connected eyetracking device is "HED") "iV_PauseRecording" does not return until gaze and scene video recording is paused
DLLExport int __stdcall iV_ClearRecordingBuffer ()
 clears the data buffer and scene video buffer (if connected eyetracking device is "HED").
DLLExport int __stdcall iV_SaveData (char filename[256], char description[64], char user[64], int overwrite)
 writes data buffer and scene video buffer (if connected eyetracking device is "HED") to file "filename" "iV_SaveData" will not return until the data has been saved
DLLExport int __stdcall iV_SetupCalibration (struct CalibrationStruct *calibrationData)
 sets calibration parameters
DLLExport int __stdcall iV_SaveCalibration (char name[256])
 stores a performed calibration
DLLExport int __stdcall iV_LoadCalibration (char name[256])
 loads a saved calibration a calibration has to be previously saved by using "iV_SaveCalibration"
DLLExport int __stdcall iV_AcceptCalibrationPoint ()
 accepts a calibration point (participat has to be tracked; only if calibration is active)
DLLExport int __stdcall iV_AbortCalibration ()
 aborts a calibration or validation (only if calibration or validation is active)
DLLExport int __stdcall iV_ChangeCalibrationPoint (int number, int positionX, int positionY)
 changes the position of a calibration point
DLLExport int __stdcall iV_ResetCalibrationPoints ()
 resets the default positions of all calibration points
DLLExport int __stdcall iV_Calibrate ()
 starts a calibration procedure. If "CalibrationStruct::visualization" is set to "1" with "iV_SetupCalibration" "iV_Calibrate" will not return until the calibration has been finished or aborted.
DLLExport int __stdcall iV_Validate ()
 starts a validation procedure. If "CalibrationStruct::visualization" is set to "1" with "V_SetupCalibration" "iV_Calibrate" will not return until the calibration has been finished or aborted.
DLLExport int __stdcall iV_GetAccuracy (struct AccuracyStruct *accuracyData, int visualization)
 updates "accuracyData" with current accuracy data If parameter "visualization" is set to "1" the accuracy data will be visualized in a dialog window iV_GetAccuracy will not return until "AccuracyStruct" is updated
DLLExport int __stdcall iV_GetCurrentCalibrationPoint (struct CalibrationPointStruct *actualCalibrationPoint)
 updates "currentCalibrationPoint" with current calibration point data
DLLExport int __stdcall iV_EnableGazeDataFilter ()
 enables a gaze data filter. This API bilateral filter was implemented due to special HCI application requirements
DLLExport int __stdcall iV_DisableGazeDataFilter ()
 disables the raw data filter
DLLExport int __stdcall iV_GetSample (struct SampleStruct *rawDataSample)
 updates "rawDataSample" with current eyetracking data
DLLExport int __stdcall iV_GetSample32 (struct SampleStruct32 *rawDataSample)
 updates "rawDataSample" with current eyetracking data
DLLExport int __stdcall iV_SetEventDetectionParameter (int minDuration, int maxDispersion)
 defines detection parameter for online fixation detection algorithm
DLLExport int __stdcall iV_GetEvent (struct EventStruct *eventDataSample)
 updates "eventDataSample" with current event data
DLLExport int __stdcall iV_GetEvent32 (struct EventStruct32 *eventDataSample)
 updates "eventDataSample" with current event data
DLLExport int __stdcall iV_SendImageMessage (char etMessage[256])
 sends a text message to iView X. "etMessage" will be written to the data file. If "etMessage" ends on .jpg, .bmp, .png, or .avi BeGaze will separate the data buffer into according trials.
DLLExport int __stdcall iV_SetLogger (int logLevel, char filename[256])
 defines the logging behavior of iView X SDK
DLLExport int __stdcall iV_Log (char logMessage[256])
 writes "logMessage" to log file
DLLExport int __stdcall iV_SetupREDStandAloneMode (struct REDStandAloneModeStruct *standAloneModeGeometry)
 defines remotely the RED stand alone mode
DLLExport int __stdcall iV_GetActualTimestamp (long long *actualTimestamp)
 requests the eye tracker time stamp
DLLExport int __stdcall iV_ShowEyeImageMonitor ()
 visualizes eye image in seperate dialog (available for all devices except RED)
DLLExport int __stdcall iV_ShowSceneVideoMonitor ()
 visualizes scene video in seperate dialog (available for HED devices only)
DLLExport int __stdcall iV_ShowTrackingMonitor ()
 visualizes RED Tracking Monitor (available for RED devices only)
DLLExport void __stdcall iV_SetCalibrationCallback (pDLLSetCalibrationPoint pCalibrationCallbackFunction)
 "iV_CalibrationCallback" function will be called if a calibration point has changed, the calibration has been finished or aborted. This callback allows drawing a customized calibration routine.
DLLExport void __stdcall iV_SetSampleCallback (pDLLSetSample pSampleCallbackFunction)
 "iV_SampleCallback" function will be called if iView X has generated a new raw data sample. Important note: Dependent on the sample rate critical algorithms with high processor usage shouldn't be running within this callback
DLLExport void __stdcall iV_SetEventCallback (pDLLSetEvent pEventCallbackFunction)
 "iV_EventCallback" function will be called if an real-time detected fixation has started or ended.
DLLExport int __stdcall Test ()
 Test - test routine.

Detailed Description

The file contains the prototype declaration for all supported functions and data structs the customer needs to use.

Definition in file iViewXAPI.h.


Function Documentation

DLLExport int __stdcall iV_AbortCalibration ( )

aborts a calibration or validation (only if calibration or validation is active)

Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
ERR_WRONG_DEVICE - eye tracking device required for this function is not connected
DLLExport int __stdcall iV_AcceptCalibrationPoint ( )

accepts a calibration point (participat has to be tracked; only if calibration is active)

Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
ERR_WRONG_DEVICE - eye tracking device required for this function is not connected
DLLExport int __stdcall iV_Calibrate ( )

starts a calibration procedure. If "CalibrationStruct::visualization" is set to "1" with "iV_SetupCalibration" "iV_Calibrate" will not return until the calibration has been finished or aborted.

Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
ERR_WRONG_DEVICE - eye tracking device required for this function is not connected
ERR_WRONG_CALIBRATION_METHOD - eye tracking device required for this calibration method is not connected
DLLExport int __stdcall iV_ChangeCalibrationPoint ( int  number,
int  positionX,
int  positionY 
)

changes the position of a calibration point

Parameters:
number- selected calibration point
positionX- new X position on screen
positionY- new Y position on screen
Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
ERR_NO_RESPONSE_FROM_IVIEWX - no response from iView X; check calibration name / identifier
DLLExport int __stdcall iV_ClearRecordingBuffer ( )

clears the data buffer and scene video buffer (if connected eyetracking device is "HED").

Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
ERR_WRONG_DEVICE - eye tracking device required for this function is not connected
DLLExport int __stdcall iV_Connect ( char  sendIPAddress[16],
int  sendPort,
char  recvIPAddress[16],
int  receivePort 
)

establishes a UDP connection to iView X. "iV_Connect" will not return until connection has been established. If no connection can be established it will return after three seconds.

Parameters:
SendIPAddress- IP address of iView X computer
SendPort- port being used by iView X SDK for sending data to iView X
RecvIPAddress- IP address of local computer
ReceivePort- port being used by iView X SDK for receiving data from iView X
Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_WRONG_PARAMETER - parameter out of range
ERR_COULD_NOT_CONNECT - failed to establish connection
DLLExport int __stdcall iV_ContinueRecording ( char  etMessage[256])

pauses gaze data recording and scene video recording (if connected eyetracking device is "HED") "iV_ContinueRecording" does not return until gaze and scene video recording is continued

Parameters:
etMessage- text message to be written to data file
Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
ERR_WRONG_DEVICE - eye tracking device required for this function is not connected
DLLExport int __stdcall iV_DisableGazeDataFilter ( )

disables the raw data filter

Returns:
RET_SUCCESS - intended functionality has been fulfilled
DLLExport int __stdcall iV_Disconnect ( )

disconnects from iView X "iV_Disconnect" will not return until the connection has been disconnected.

Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_DELETE_SOCKET - failed to delete sockets
DLLExport int __stdcall iV_EnableGazeDataFilter ( )

enables a gaze data filter. This API bilateral filter was implemented due to special HCI application requirements

Returns:
RET_SUCCESS - intended functionality has been fulfilled
DLLExport int __stdcall iV_GetAccuracy ( struct AccuracyStruct accuracyData,
int  visualization 
)

updates "accuracyData" with current accuracy data If parameter "visualization" is set to "1" the accuracy data will be visualized in a dialog window iV_GetAccuracy will not return until "AccuracyStruct" is updated

Parameters:
accuracyData- see reference information for "AccuracyStruct"
visualization- 0: no visualization 1: accuracy data will be visualized in a dialog window
Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
ERR_NOT_CALIBRATED - system is not calibrated
ERR_WRONG_PARAMETER - parameter out of range
ERR_NO_VALID_DATA - no new data available; all values inside struct are set to -1
DLLExport int __stdcall iV_GetActualTimestamp ( long long *  actualTimestamp)

requests the eye tracker time stamp

Parameters:
actualTimestamp- provides the internal time stamp
Returns:
RET_SUCCESS - intended functionality has been fulfilled
RET_NO_VALID_DATA - no new data available
ERR_NOT_CONNECTED - no connection established
DLLExport int __stdcall iV_GetCurrentCalibrationPoint ( struct CalibrationPointStruct actualCalibrationPoint)

updates "currentCalibrationPoint" with current calibration point data

Parameters:
actualCalibrationPoint- see reference information for "CalibrationPointStruct"
Returns:
RET_SUCCESS - intended functionality has been fulfilled
RET_NO_VALID_DATA - no new data available
ERR_NOT_CONNECTED - no connection established
DLLExport int __stdcall iV_GetEvent ( struct EventStruct eventDataSample)

updates "eventDataSample" with current event data

Parameters:
eventDataSample- see reference information for "EventStruct"
Returns:
RET_SUCCESS - intended functionality has been fulfilled
RET_NO_VALID_DATA - no new data available
ERR_NOT_CONNECTED - no connection established
DLLExport int __stdcall iV_GetEvent32 ( struct EventStruct32 eventDataSample)

updates "eventDataSample" with current event data

Parameters:
eventDataSample- see reference information for "EventStruct32"
Returns:
RET_SUCCESS - intended functionality has been fulfilled
RET_NO_VALID_DATA - no new data available
ERR_NOT_CONNECTED - no connection established
DLLExport int __stdcall iV_GetSample ( struct SampleStruct rawDataSample)

updates "rawDataSample" with current eyetracking data

Parameters:
rawDataSample- see reference information for "SampleStruct"
Returns:
RET_SUCCESS - intended functionality has been fulfilled
RET_NO_VALID_DATA - no new data available
ERR_NOT_CONNECTED - no connection established
DLLExport int __stdcall iV_GetSample32 ( struct SampleStruct32 rawDataSample)

updates "rawDataSample" with current eyetracking data

Parameters:
rawDataSample- see reference information for "SampleStruct32"
Returns:
RET_SUCCESS - intended functionality has been fulfilled
RET_NO_VALID_DATA - no new data available
ERR_NOT_CONNECTED - no connection established
DLLExport int __stdcall iV_GetSystemInfo ( struct SystemInfoStruct systemInfoData)

updates "systemInfoData" with current system information

Parameters:
SystemInfoStruct- see reference information for "SystemInfoStruct"
Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
RET_NO_VALID_DATA - no new data available
DLLExport int __stdcall iV_IsConnected ( )

checks if connection to iView X is still established

Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
DLLExport int __stdcall iV_LoadCalibration ( char  name[256])

loads a saved calibration a calibration has to be previously saved by using "iV_SaveCalibration"

Parameters:
name- calibration name / identifier
Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
ERR_WRONG_IVIEWX_VERSION - wrong version of iView X
ERR_WRONG_DEVICE - eye tracking device required for this function is not connected
ERR_NO_RESPONSE_FROM_IVIEWX - no response from iView X; check calibration name / identifier
DLLExport int __stdcall iV_Log ( char  logMessage[256])

writes "logMessage" to log file

Parameters:
logMessage- message that shall be written to the log file
Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_ACCESS_TO_FILE - failed to access log file
DLLExport int __stdcall iV_PauseRecording ( )

pauses gaze data recording and scene video recording (if connected eyetracking device is "HED") "iV_PauseRecording" does not return until gaze and scene video recording is paused

Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
ERR_WRONG_DEVICE - eye tracking device required for this function is not connected
DLLExport int __stdcall iV_Quit ( )

disconnects and closes iViewX

Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_DELETE_SOCKET - failed to delete sockets
DLLExport int __stdcall iV_ResetCalibrationPoints ( )

resets the default positions of all calibration points

Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
DLLExport int __stdcall iV_SaveCalibration ( char  name[256])

stores a performed calibration

Parameters:
name- calibration name / identifier
Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
ERR_NOT_CALIBRATED - system is not calibrated
ERR_WRONG_IVIEWX_VERSION - wrong version of iView X
ERR_WRONG_DEVICE - eye tracking device required for this function is not connected
DLLExport int __stdcall iV_SaveData ( char  filename[256],
char  description[64],
char  user[64],
int  overwrite 
)

writes data buffer and scene video buffer (if connected eyetracking device is "HED") to file "filename" "iV_SaveData" will not return until the data has been saved

Parameters:
Filename- filename of data files being created (.idf: eyetracking data, .avi: scene video data)
Description- optional experiment description
User- optional name of test person
Overwrite- 0: do not overwrite file “filename” if it already exists 1: overwrite file “filename” if it already exists
Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
ERR_NO_DATA_RECORDED - if recording buffer is empty
ERR_WRONG_PARAMETER - parameter out of range
DLLExport int __stdcall iV_SendCommand ( char  etMessage[256])

sends a remote command to iView X. Please refer to the iView X help file for further information about remote commands.

Parameters:
ETMessage- iView X remote command
Returns:
RET_SUCCESS - intended functionality has been fulfilled ERR_WRONG_PARAMETER - parameter out of range
DLLExport int __stdcall iV_SendImageMessage ( char  etMessage[256])

sends a text message to iView X. "etMessage" will be written to the data file. If "etMessage" ends on .jpg, .bmp, .png, or .avi BeGaze will separate the data buffer into according trials.

Parameters:
etMessage- Any text message to separate trials (image name containing extensions) or any idf data marker
Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
DLLExport void __stdcall iV_SetCalibrationCallback ( pDLLSetCalibrationPoint  pCalibrationCallbackFunction)

"iV_CalibrationCallback" function will be called if a calibration point has changed, the calibration has been finished or aborted. This callback allows drawing a customized calibration routine.

Parameters:
pCalibrationCallbackFunction- pointer to CalibrationCallbackFunction
DLLExport void __stdcall iV_SetEventCallback ( pDLLSetEvent  pEventCallbackFunction)

"iV_EventCallback" function will be called if an real-time detected fixation has started or ended.

Parameters:
pEventCallbackFunction- pointer to EventCallbackFunction
DLLExport int __stdcall iV_SetEventDetectionParameter ( int  minDuration,
int  maxDispersion 
)

defines detection parameter for online fixation detection algorithm

Parameters:
minDuration- minimun fixation duration [ms] maxDispersion - maximum dispersion [px] for head tracking systems or [deg] for non head tracking systems
Returns:
RET_SUCCESS - intended functionality has been fulfilled
DLLExport int __stdcall iV_SetLicense ( char *  licenseKey)

validates the customer license (only for OEM devices)

Returns:
RET_SUCCESS - intended functionality has been fulfilled
DLLExport int __stdcall iV_SetLogger ( int  logLevel,
char  filename[256] 
)

defines the logging behavior of iView X SDK

Parameters:
logLevel- logging status, see "Explanations for Defines" in this manual for further information
filename- filename of log file
Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_WRONG_PARAMETER - parameter out of range
ERR_ACCESS_TO_FILE - failed to access log file
DLLExport void __stdcall iV_SetSampleCallback ( pDLLSetSample  pSampleCallbackFunction)

"iV_SampleCallback" function will be called if iView X has generated a new raw data sample. Important note: Dependent on the sample rate critical algorithms with high processor usage shouldn't be running within this callback

Parameters:
pSampleCallbackFunction- pointer to SampleCallbackFunction
DLLExport int __stdcall iV_SetTrackingParameter ( int  ET_PARAM_EYE,
int  ET_PARAM,
int  value 
)

sets iView X tracking parameters

Parameters:
ET_PARAM_EYE- select specific eye
ET_PARAM- select parameter that shall be set
value- new value for selected parameter
Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
ERR_WRONG_PARAMETER - parameter out of range
DLLExport int __stdcall iV_SetupCalibration ( struct CalibrationStruct calibrationData)

sets calibration parameters

Parameters:
calibrationData- see reference information for "CalibrationStruct"
Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_WRONG_PARAMETER - parameter out of range
ERR_WRONG_DEVICE - eye tracking device required for this function is not connected
ERR_WRONG_CALIBRATION_METHOD - eye tracking device required for this calibration method is not connected
DLLExport int __stdcall iV_SetupREDStandAloneMode ( struct REDStandAloneModeStruct standAloneModeGeometry)

defines remotely the RED stand alone mode

Parameters:
standAloneModeGeometry- see reference information for "REDStandAloneModeStruct"
Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
ERR_WRONG_PARAMETER - parameter out of range
ERR_WRONG_DEVICE - eye tracking device required for this function is not connected
DLLExport int __stdcall iV_ShowEyeImageMonitor ( )

visualizes eye image in seperate dialog (available for all devices except RED)

Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
ERR_WRONG_DEVICE - eye tracking device required for this function is not connected
DLLExport int __stdcall iV_ShowSceneVideoMonitor ( )

visualizes scene video in seperate dialog (available for HED devices only)

Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
ERR_WRONG_DEVICE - eye tracking device required for this function is not connected
DLLExport int __stdcall iV_ShowTrackingMonitor ( )

visualizes RED Tracking Monitor (available for RED devices only)

Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
ERR_WRONG_DEVICE - eye tracking device required for this function is not connected
DLLExport int __stdcall iV_Start ( )

run iView X application and connects automatically (only on same computer)

Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_COULD_NOT_CONNECT - failed to establish connection
ERR_IVIEWX_NOT_FOUND - failed to start iViewX application
DLLExport int __stdcall iV_StartRecording ( )

starts gaze data recording and scene video recording (if connected eyetracking device is "HED") "iV_StartRecording" does not return until gaze and scene video recording is started

Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
ERR_WRONG_DEVICE - eye tracking device required for this function is not connected
DLLExport int __stdcall iV_StopRecording ( )

stops gaze data recording and scene video recording (if connected eyetracking device is "HED") "iV_StopRecording" does not return until gaze and scene video recording is stopped

Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
ERR_WRONG_DEVICE - eye tracking device required for this function is not connected
DLLExport int __stdcall iV_Validate ( )

starts a validation procedure. If "CalibrationStruct::visualization" is set to "1" with "V_SetupCalibration" "iV_Calibrate" will not return until the calibration has been finished or aborted.

Returns:
RET_SUCCESS - intended functionality has been fulfilled
ERR_NOT_CONNECTED - no connection established
ERR_NOT_CALIBRATED - system is not calibrated
ERR_WRONG_DEVICE - eye tracking device required for this function is not connected