Solved! Here's a way to access the SDK functions directly, using ctypes module's DLL support. Special thanks to Flip Phillips at Skidmore College for the solution.
Quote:
from ctypes import * # eyetrackka
import os
vpxDll = 'C:\ViewPoint 2.9.2.5\VPX_InterApp.dll'
if ( not os.access(vpxDll,os.F_OK) ):
print("WARNING: Invalid vpxDll path")
cdll.LoadLibrary( vpxDll )
vpx = CDLL( vpxDll )
eyeTime = c_double();
eyeTimePointer = pointer(eyeTime)
eyeA = self.arrington.EYE_A;
eyeDataTime = vpx.VPX_GetDataTime2(eyeA,eyeTimePointer)
outputString = 'eyeDataTime %f eyeTime %f' % (eyeDataTime, eyeTime.value)
print outputString
|