CreateEventFeature
|
![]() ![]() ![]() |
[in] const char* name
|
Name of the data field in the event. Must not be NULL or empty.
|
|
[in] const char* event
|
Name of the event.
|
|
[in] unsigned short type
|
Type of the feature to be created. Can be one of the following values:
|
FEATURE_TYPE_UINTEGER - unsigned 32-bit integer feature, maps to a slider with value, minimum, maximum and increment
|
FEATURE_TYPE_INTEGER - signed 32-bit integer feature, maps to a slider with value, min, maximum, increment and physical unit
|
FEATURE_TYPE_INTEGER64 - signed 62-bit integer feature, maps to a slider with value, min, maximum, increment and physical unit
|
FEATURE_TYPE_FLOAT - floating point 32-bit feature, maps to a slider with value, minimum, maximum and physical unit
|
FEATURE_TYPE_STRING - string feature, maps to an edit box showing a string of text
|
FEATURE_TYPE_BOOLEAN - boolean feature, maps to a check box
|
FEATURE_TYPE_COMMAND - command feature, maps to a command button
|
FEATURE_TYPE_ENUMERATION - enumeration feature, maps to dropdown box with a list of selectable items
|
|
unsigned int offset
|
[in] Integer value specifying the offset (in bytes) of the data field associated with the feature relative to the
|
|
unsigned int length
|
[in] Integer value specifying the length (in bytes) of the data field associated with the feature.
|
|
const char* description
|
[in] String containing the description of the feature.
|
|
S_OK
|
Success
|
E_FAIL
|
Failure
|
E_NOINTERFACE
|
Event does not exist
|
E_INVALIDARG
|
Wrong feature type or access
|
|
|
m_pCamera->CreateEventFeature ("ExposureTime", "FrameStart", FEATURE_TYPE_FLOAT, 16, 4);
|
|
<Category Name="EventFrameStartData" NameSpace="Standard">
|
..................................................
|
<pFeature>EventFrameStartExposureTime</pFeature>
|
</Category>
|
|
<Float Name="EventFrameStartExposureTime">
|
<pValue>regEventFrameStartExposureTime</pValue>
|
</Float>
|
<FloatReg Name="regEventFrameStartExposureTime" NameSpace="Custom">
|
<Address>0x10</Address>
|
<Length>4</Length>
|
<AccessMode>RO</AccessMode>
|
<pPort>EventFrameStartPort</pPort>
|
<Endianess>BigEndian</Endianess>
|
</FloatReg>
|