WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1  
Old 04-11-2014, 08:35 AM
performlabrit performlabrit is offline
Member
 
Join Date: Oct 2013
Posts: 77
Timestamps on Arrington data? VPX.dll?

I'm attempting to use the Arrington interface, but want accurate timing data.

Although the Vizard plugin does not provide a function to get accurate timing information, the Arrington SDK does, with its function:

VPX_GetDataTime2(0,pointerToACTypeDouble);

I was hoping to use the arrington.sendCommand() function, but seems to only be able to send command line interface functions.

I've seen mention of Vizards vpx.pyd module, but see no documentation.

Any advice?
Reply With Quote
  #2  
Old 04-11-2014, 10:42 AM
performlabrit performlabrit is offline
Member
 
Join Date: Oct 2013
Posts: 77
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
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Streaming data with onNetwork Ryan Vizard 2 05-16-2013 06:47 AM
data lose psykoko Vizard 3 12-16-2010 08:08 PM
Use saved text file data as replay sources problem mizutani_jun Vizard 4 10-14-2010 04:49 PM
Arrington - Ethernet ViewPoint Client jaclyn.bill Vizard 3 10-23-2009 10:43 AM
tracking using quaternarion data jfreeman Vizard 2 06-01-2005 08:48 AM


All times are GMT -7. The time now is 10:37 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC