Skip to main content

A package for communicating with eye trackers via the iViewX server software from SensoMotoric Instruments.

Project description

Here’s a basic example of usage:

from pyviewx.client import iViewXClient, Dispatcher
from twisted.internet import reactor

d = Dispatcher()
client = iViewXClient('192.168.1.100', 4444)
client.addDispatcher(d)

@d.listen('ET_FIX')
def PyViewXEvent(inResponse):
        print 'Fixation Start', inResponse

@d.listen('ET_EFX')
def PyViewXEvent(inResponse):
        print 'Fixation End', inResponse

@d.listen('ET_SPL')
def PyViewXEvent(inResponse):
        print 'Sample', inResponse

reactor.listenUDP(5555, client)
reactor.callLater(0, client.setDataFormat, '%TS %ET %SX %SY %DX %DY %EX %EY %EZ')
reactor.callLater(0, client.startDataStreaming)
reactor.callLater(0, client.startFixationProcessing)
reactor.run()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyviewx.client-0.5.1.tar.gz (5.0 kB view details)

Uploaded Source

File details

Details for the file pyviewx.client-0.5.1.tar.gz.

File metadata

File hashes

Hashes for pyviewx.client-0.5.1.tar.gz
Algorithm Hash digest
SHA256 dc366bf4cf6be2cef84743f715a7e0dd2a2d65679fa75be08e67a82d508b769e
MD5 c8f8b7f22f997f8d4fad7ddb704a0fe1
BLAKE2b-256 7da194acec0f8c58337915431604808b306ffffba856ec35e45db1a90dc7d95f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page