Page 1 of 1

GetOption NP_OPTION_FRAME_RATE

Posted: Mon Jul 23, 2007 2:59 am
by txemi
Hi.

I have several OptiTrack cameras model C:120. I need to obtain the Frame Rate that currently has the camera. In order to obtain this value, I use the function GetOption with the parameter NP_OPTION_FRAME_RATE. The result of the function GetOption is NP_E_DEVICE_NOT_SUPPORTED instead of S_OK.

Code: Select all

CComVariant ComVarOption;
HRESULT hResult = camera->GetOption(NP_OPTION_FRAME_RATE, &ComVarOption);

What I am doing wrong?


Thanks.

Re: GetOption NP_OPTION_FRAME_RATE

Posted: Mon Jul 23, 2007 4:06 pm
by Birch
Your implementation looks ok.

I checked and found a problem when using GetOption + NP_OPTION_FRAME_RATE with C120 cameras. It erroneously returns an error condition and invalid value most of the time. The issue is now fixed and the correction will be included in the next release.

In the mean time you may wish to locally cache the FRAME_RATE value when using SetOption and use your cached value to determine what the cameras are set at instead.