Get EXPOSURE paremeter value

Post Reply
yashacl
Posts: 2
Joined: Fri Mar 05, 2010 7:06 am

Get EXPOSURE paremeter value

Post by yashacl »

Hello

Sorry for my poor English. This is not my birth language.

My laboratory got Optitrack FLEXV100r2 camera and I am working on it using:
- SDK provided on naturalpoint website
- OptiTrackAPI_1.1.037.pdf
- C++ Grayscale Sample
- C++ VC8/2005 Sample
- C++ Win32 command line VC8/2005 Sample

My question is simple: how do I get the EXPOSURE current value of my camera please?

When I want to change this value I use this:

CComPtr camera;
CComVariant var1;
�����
int newvalue=100;
var1 = (long)newvalue;
camera->SetOption(NP_OPTION_EXPOSURE, var1);


When I want to get the current value I use this:

CComVariant var2;
camera->GetOption(NP_OPTION_EXPOSURE, &var2);

But when i checked the integer value �var2.lVal� , it is 204 and not 100.

I probably made a mistake. How do I get the current value of EXPOSURE parameter in a integer variable for example please ?
Birch
Posts: 1139
Joined: Thu Jan 30, 2003 5:00 am
Location: Corvallis, Oregon

Re: Get EXPOSURE paremeter value

Post by Birch »

We have looked into this and found there is an issue with reading the exposure value for V100R2 cameras in the current release of the OptiTrack SDK.

We would recommend not reading the value from the SDK until the next release when this is fixed. Instead just save a copy of the exposure used if you call SetOption() and use that as a reference.
yashacl
Posts: 2
Joined: Fri Mar 05, 2010 7:06 am

Re: Get EXPOSURE paremeter value

Post by yashacl »

Ok thanks for your answer. ;)
Post Reply