GenICam_SDK.docx
9
3.3 Getting and setting features
To configure the camera, so called features can be set and read by using the feature names
provided by the device-xml-file.
All features are of a specific type. The following different types exist:
-
Boolean
-
Integer
-
Floating point
-
String
-
Command
-
Register
-
Enumeration
For each type,
a “Get”- and “Set”-function does exist in the API. For example use
” to get a float parameter.
To retrieve additional information the
function “
” exists. This function
will fill a csiFeatureParameter-structure which provides information about the display name,
minimum and maximum values, etc. This function is especially useful if you do not know the
valid thresholds of a parameter.
Please be careful when treating string features. You must not exceed the maximum length! This
can also be retrieved with the function
. The parameter
“
maximumStringLength
” of the csiFeatureParameter-structure will indicate the maximum string
length to set in the feature.
If the complete list of the device features needs to be retrieved, it is recommended to use the
function
”. An example is shipped with the SDK to demonstrate the
usage of it.
To set the values please use the type-specific set-functions. For example, use
“
” for an integer value.
These functions are described in detail in the chapter
“3.3 Getting and setting features”.