CreateAdvancedFeature
|
[in] const char* type
|
String indicating the type of the feature, such as "SwissKnife", "Converter", "ConfRom".
|
|
[in] const char* name
|
Name of the feature to be created. Must not be NULL or empty.
|
|
[in] const char* category
|
GenICam category under which the feature will be created. This parameter should be either "Root" or the name of the existing category created via CreateCategory.
|
[in] unsigned short namespace
|
Namespace to which the feature will belong. Can be one of the following values:
|
FEATURE_NAMESPACE_STANDARD - feature will be created with the "Standard" namespace tag (recommended for features which follow the GenICam SFNC specifications).
|
FEATURE_NAMESPACE_CUSTOM - feature will be created with the "Custom" namespace tag (recommended for features with proprietary names).
|
|
S_OK
|
Success
|
E_FAIL
|
Failure
|
E_NOINTERFACE
|
Category does not exist
|
|
|
CreateCustomFeature("SwissKnife", "MaxFrameRate", "");
|
|
SetFeatureElement("MaxFrameRate", "pVariable", "regPayloadSize", true);
|
SetFeatureElement("MaxFrameRate", "pVariable", "regExposureTime", true);
|
SetFeatureElement("MaxFrameRate", "pVariable", "regMultiplierFPS", true);
|
SetFeatureElement("MaxFrameRate", "Formula", "( (1000000000 / 8 / PS < 1000000 / ET) ? (1000000000 / 8 / PS) * MUL : (1000000 / ET) * MUL)", true);
|
|
CreateElementAttribute("MaxFrameRate", "pVariable", "regPayloadSize", "Name", "PS");
|
CreateElementAttribute("MaxFrameRate", "pVariable", "regExposureTime", "Name", "ET");
|
CreateElementAttribute("MaxFrameRate", "pVariable", "regMultiplierFPS", "Name", "MUL");
|