View Single Post
  #8   Spotlight this post!  
Unread 28-01-2010, 17:06
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Saving Camera Exposure and White Balance Holds after Restart?

Quote:
Originally Posted by Mr. Lim View Post
We are working in C++.

The API provides two functions:

Code:
void AxisCamera::writeExposureControl  ( ExposureT  exposureControl  )   

Parameters:
 valid  values are automatic, hold, flickerfree50, flickerfree60  

void AxisCamera::writeWhiteBalance  ( WhiteBalanceT  whiteBalance  )   

Parameters:
 valid  values automatic, hold, fixed_outdoor1, fixed_outdoor2, fixed_indoor,fixed_flour1, fixed_flour2
When setting both of these to HOLD in code, the camera appears to still stay in AUTOMATIC. Upon immediately logging in to the camera's web interface, it confirms that the camera is still in AUTOMATIC mode.

Furthermore, there doesn't seem to be a way to programmatically "set" an exposure or white balance level, either through the API or web interface.

For those using LabVIEW, can you verify that you can change the exposure and white balance settings to HOLD, and confirm that they actually changed through the camera's web interface?
I was refactoring the AxisCamera class last night and found 3 bugs that prevent the C++ implementation from successfully setting the rotation, exposure, and white balance. This is likely why it's not working for you.

-Joe

EDIT: Turns out the rotation bug was introduced since Update 1.

Last edited by jhersh : 29-01-2010 at 12:05.