Page 1 of 1
setOption
Posted: Wed Jan 16, 2008 12:52 pm
by seanboyette
Hey Guys,
I want to change the Options via a slider - and am using the following -
camera->SetOption(NP_OPTION_NUMERIC_DISPLAY_ON, (CComVariant) iDisplay);
camera->SetOption(NP_OPTION_FRAME_RATE,(CComVariant) dFPS);
camera->SetOption(NP_OPTION_THRESHOLD, (CComVariant) dThresh);
camera->SetOption(NP_OPTION_EXPOSURE_DEFAULT, (CComVariant) dExposure);
camera->SetOption(NP_OPTION_INTENSITY_DEFAULT, (CComVariant) dIntensity);
although when I am viewing the frame via drawframe, I cannot see any changes.
any ideas?
Sean
Re: setOption
Posted: Wed Jan 16, 2008 1:16 pm
by seanboyette
probably should use the options NT_OPTION_EXPOSURE rather than default! However, that still not display it properly?
Re: setOption
Posted: Wed Jan 16, 2008 1:17 pm
by beckdo
That should work properly. Check out some of the samples as they do the same thing. Let me know if you need more help.
Re: setOption
Posted: Wed Jan 16, 2008 2:31 pm
by seanboyette
Hey doug - thanks for the assistance - I have looked through the tutorials - and it appears as though my settings still do not drive the drawimage - I am slightly concerned they are not being sent to the cam.
Sean
Re: setOption
Posted: Thu Jan 17, 2008 4:04 pm
by Birch
Sean,
Here is a small win32 sample (vc8) which should increment the numeric LED using SetOption() for one camera. Does it work for you?
Also, what return codes come back when the SetOption() calls are being made?
Re: setOption
Posted: Thu Jan 17, 2008 8:42 pm
by seanboyette
Birch -
Thanks for the sample - it works properly.
interestingly my slider works for the LEDs - I change the LED based on the FPS - I wanted to change it something
I just dont see the actual drawn frame doing anything? Should I?
If I change the intensity, I expected the intensity of the image to change a bit.
However, the drawn image is always contant.
Sean
Re: setOption
Posted: Fri Jan 18, 2008 1:26 am
by Birch
If you are running in greyscale mode then minor changes should be visible. It may be harder to discern changes in thresholded mode.
Changing the exposure value will be much more noticeable than changing the intensity value.
Sometimes there are issues with changing the V100 exposure settings when the cameras are not running at 100 fps. So, if you want to run them with NP_OPTION_FRAME_RATE < 100, it is deal to set it back to 100 before adjusting the exposure. After changing the exposure you can return it to the slower setting again.
BTW, its best to control the amount of IR light emitted by V100s by just changing the exposure while keeping the LEDs in strobe mode (intensity = 15). Reducing the exposure will also reduce the duration that the IR LEDs are strobed for (effectively dimming them), this lets you adjust the brightness while keeping all the motion-freezing benefits of the strobe.