Vizard 7 » Tutorials & Examples » Example scripts » Input Devices » PPT
7.6

PPT tester

PPT tester

This script will connect to PPT marker 1 data if it's being streamed via VRPN.

import viz
import vizinput

viz.go()

vrpn = viz.add('vrpn7.dle')
#Check the name of your PPT machine and change the name in the line below if necessary
tracker = vrpn.addTracker('PPT0@PPT-MACHINE',0)

if tracker.valid():
    vizinput.message('Connection established to PPT marker 1')
else:
    vizinput.message('Failed to detect PPT marker 1')