Get EXPOSURE paremeter value
Posted: Fri Mar 05, 2010 7:31 am
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 ?
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 ?