SetFeatureElement
|
[in] const char* feature
|
Name of the feature to assign the element to.
|
|
[in] const char* element
|
Name of the element.
|
|
[in] const char* value
|
String representing the value of the element.
|
|
[in] bool* forceNew
|
This parameter should be used only if the element with the same name already exists. If TRUE, the new element will be created regardless. If FALSE, the method will not create a new element, but will only modify the value of the existing element.
|
S_OK
|
Success
|
E_FAIL
|
Failure
|
E_NOINTERFACE
|
Feature does not exist
|
|
The following fragment of code creates a floating point feature and sets up several associated elements:
|
|
m_pCamera->CreateFeature(FEATURE_TYPE_FLOAT, "ExposureTime", "Analog", REG_ACCESS_ALL);
|
m_pCamera->SetFeatureRange("ExposureTime", 10., 100000000.);
|
m_pCamera->SetFeatureDescription("ExposureTime", "Exposure duration, in microseconds");
|
m_pCamera->SetFeatureElement("ExposureTime", "ToolTip","Exposure time");
|
m_pCamera->SetFeatureElement("ExposureTime", "Representation", "Logarithmic");
|
m_pCamera->SetFeatureElement("regExposureTime", "Cachable", "NoCache");
|
<Float Name="ExposureTime" NameSpace="Standard">
|
<ToolTip>Exposure time.</ToolTip>
|
<Description>Exposure duration, in microseconds.</Description>
|
<pValue>RegExposureTime</pValue>
|
<Min>10.</Min>
|
<Max>100000000.</Max>
|
<Representation>Logarithmic</Representation>
|
</Float>
|
<FloatReg Name="regExposureTime" NameSpace="Standard">
|
<Address>0x10044</Address>
|
<Length>4</Length>
|
<AccessMode>RW</AccessMode>
|
<pPort>Device</pPort>
|
<Cachable>NoCache</Cachable>
|
<Endianess>BigEndian</Endianess>
|
<FloatReg>
|
|