Empty time stamp

Post Reply
cheshirekow
Posts: 6
Joined: Wed Mar 26, 2008 8:19 pm

Empty time stamp

Post by cheshirekow »

Sorry if this question has already been asked. I searched for it. When I use frame->lpVtbl->get_TimeStamp(), the returned value appears to always be 0x80000000. The rest of the frame objects member functions seem to work fine. ->get_Count() returns the correct object count, ->get_Id() seems to return the correct frame Id. Also ->GetObjectData() returns a buffer of data I can read just fine. I have a code clip below.

Code: Select all

frame->lpVtbl->get_TimeStamp( frame, &variant );
timeStamp = variant.dblVal;
sprintf(stringBuffer, "%x", (unsigned long long int)timeStamp);
SetWindowText(targetEdit, stringBuffer);
It really just seems to be doing something funny. Also if I use "%f" in the sprintf I get -2747583648.000000. So I'm pretty sure it is returning something other than what I'm expecting from it. Is there anything else I need to do before calling ->getTimeStamp() ?
beckdo
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: Empty time stamp

Post by beckdo »

The OptiTrack SDK queries the system's high performance timer. This a feature that could potentially be unsupported on your system, although I've never heard of a machine that doesn't support the high performance timer.
cheshirekow
Posts: 6
Joined: Wed Mar 26, 2008 8:19 pm

Re: Empty time stamp

Post by cheshirekow »

I don't think that's the problem. As a work-around, I'm making calls to the systems high performance timer myself when I read in a frame... and it works fine.

I'm pretty sure I'm using the latest versions of the libraries. cameradll.dll is version 3.2.34.0 and optitrack.dll is version 1.1.34.0. It seems that this is a new feature since it's on the latest change log... is there a possibility it is a bug? I'm using windows XP sp2.
Post Reply