Interface for discovering devices. More...
Functions | |
cvbres_t | CVDCreateOrGetDeviceObject (const char *AccessToken, DEVOBJ &DeviceObject) |
Load or create a device object as specified by a JSON Access Path as retrieved through DODiscovery . The returned object is not a CVB image as retrieved through LoadImageFile . It provides at least the INodemapHandle2 interface. More... | |
cvbres_t | CVDCreateOrGetDeviceObjectW (const wchar_t *AccessToken, DEVOBJ &DeviceObject) |
Load or create a device object as specified by a JSON Access Path as retrieved through DODiscovery . The returned object is not a CVB image as retrieved through LoadImageFile . It provides at least the INodemapHandle2 interface. More... | |
cvbres_t __stdcall | DODiscover (const char *Seed, uint64_t SearchFlags, uint64_t Reserved, ATLIST &List, size_t DiscoverTimeoutMS) |
Create a list of available devices or nodes. More... | |
cvbres_t __stdcall | DODiscoverW (const wchar_t *Seed, uint64_t SearchFlags, uint64_t Reserved, ATLIST &List, size_t DiscoverTimeoutMS) |
Create a list of available devices or nodes given a wchar_t path. More... | |
cvbres_t __stdcall | DOEntryGetInfo (ATLIST List, size_t Index, DODiscoverInfoCommands InfoCommand, char *Info, size_t &InfoSize) |
Retrieve information on one entry in the discover list. More... | |
cvbres_t __stdcall | DOEntryGetInfoW (ATLIST List, size_t Index, DODiscoverInfoCommands InfoCommand, wchar_t *Info, size_t &InfoSize) |
Retrieve information on one entry in the discover list. More... | |
cvbres_t __stdcall | DOGetNumEntries (ATLIST List, size_t &NumEntries) |
Inquire the number of entries in the discover list obtained through through DODiscover or DODiscoverW . More... | |
cvbres_t __stdcall | DOSetFeature (ATLIST List, size_t Index, const char *NodeMapID, const char *Name, const char *Value) |
Set a GenICam feature in the nodemap of the terminal node of the current list to the provided value. More... | |
cvbres_t __stdcall | DOSetFeatureW (ATLIST List, size_t Index, const wchar_t *NMId, const wchar_t *Name, const wchar_t *Value) |
Set a GenICam feature in the nodemap of the terminal node of the current list to the provided value. All features attached to a node are set before the parameters are applied. More... | |
cvbres_t __stdcall | DOSetParameter (ATLIST List, size_t Index, const char *Name, const char *Value) |
Set an initialization parameter in the terminal node of one of the current list entries. More... | |
cvbres_t __stdcall | DOSetParameterW (ATLIST List, size_t Index, const wchar_t *Name, const wchar_t *Value) |
Set an initialization parameter in the terminal node of one of the current list entries. More... | |
cvbres_t | LoadDeviceObject (const char *AccessToken, DEVOBJ &DeviceObject) |
Load a device object as specified by a JSON Access Path as retrieved through DODiscovery . The returned object is not a CVB image as retrieved through LoadImageFile . It provides at least the INodemapHandle2 interface. More... | |
cvbres_t | LoadDeviceObjectW (const wchar_t *AccessToken, DEVOBJ &DeviceObject) |
Load a device object as specified by a JSON Access Path as retrieved through DODiscovery . The returned object is not a CVB image as retrieved through LoadImageFile . It provides at least the INodemapHandle2 interface. More... | |
Interface for discovering devices.
The device discovery is the first starting point, when connecting an acquisition device without preceeding configuration. The result of the search in DODiscover can be used for specifically picking a device by a property via LoadDeviceObject.
Commands to retrieve information on an entry in the discover list
to be used with DOEntryGetInfo
or DOEntryGetInfoW
.
enum DODiscoverLevel |
Discovery level.
This is to be used in the DODiscoverFlags::AsFlags::Depth field.
cvbres_t CVDCreateOrGetDeviceObject | ( | const char * | AccessToken, |
DEVOBJ & | DeviceObject | ||
) |
Load or create a device object as specified by a JSON Access Path as retrieved through DODiscovery
. The returned object is not a CVB image as retrieved through LoadImageFile
. It provides at least the INodemapHandle2 interface.
[in] | AccessToken | Access Path of the driver node to open. |
[out] | DeviceObject | CVB Device Object (no image interface) |
cvbres_t CVDCreateOrGetDeviceObjectW | ( | const wchar_t * | AccessToken, |
DEVOBJ & | DeviceObject | ||
) |
Load or create a device object as specified by a JSON Access Path as retrieved through DODiscovery
. The returned object is not a CVB image as retrieved through LoadImageFile
. It provides at least the INodemapHandle2 interface.
[in] | AccessToken | Access Path of the driver node to open. |
[out] | DeviceObject | CVB Device Object (no image interface) |
cvbres_t __stdcall DODiscover | ( | const char * | Seed, |
uint64_t | SearchFlags, | ||
uint64_t | Reserved, | ||
ATLIST & | List, | ||
size_t | DiscoverTimeoutMS | ||
) |
Create a list of available devices or nodes.
The provided parameter limit/define the search configuration. After obtaining a list the user can query information on the entries in the list. For each entry in the list the user can obtain a describing string (access path) which can be used in the LoadImageFile
function or in the LoadDeviceObject function to directly open a device. The obtained list handle must the released using ReleaseObject
. using ReleaseObject
.
For further information please refer to DODiscoverW
.
[in] | Seed | Initial start string for the discovery process. For example this could be the JAS of an interface in which case only devices on this interface would be listed in the newly created list. |
[in] | SearchFlags | Flags providing additional search criterias/configurations. See DDFlags for more information. |
[in] | Reserved | |
[out] | List | Pointer receiving the handle to the created list. |
[in] | DiscoverTimeoutMS | Timeout for the discovery in milliseconds on the last level. For example if it is specified in the SearchFlags that the max depth is DDFLAG_LVL_IFACE which would result in a list of available interfaces, the timeout would be used to when listing the available interfaces. |
cvbres_t __stdcall DODiscoverW | ( | const wchar_t * | Seed, |
uint64_t | SearchFlags, | ||
uint64_t | Reserved, | ||
ATLIST & | List, | ||
size_t | DiscoverTimeoutMS | ||
) |
Create a list of available devices or nodes given a wchar_t
path.
The provided parameter limits/define the search configuration. After obtaining a list the user can query information on the entries in the list. For each entry in the list the user can obtain a describing string (access path) which can be used in the LoadImageFile
function or in the LoadDeviceObject function to directly open a device. The obtained list handle must the released using ReleaseObject
. This function creates internally a tree with nodes for level. The levels are System-VIN/TL-Interface-Device. The list presented in the end contains the terminal nodes of this tree. If Partial is set to FALSE all terminal nodes are of the same level which is the specified discovery level in the DODiscoverFlags::Flags::Depth
field of SearchFlags
. If Partial is set to TRUE also terminal nodes of incomplete branches are used.
For VINs we currently do not support discovery up the device level. This means that you can enumerate VINs but you can not directly open a single channel. So if depth
is set to DDFLAG_LVL_VIN and a VIN access path is passed to the LoadImageFile
function the driver is loaded as it has been in the past.
If the resulting Access Path Token (retrieved through DOEntryGetInfo
or DOEntryGetInfoW
with the command DD_INFO_JAS
) is used in LoadImageFile
or LoadImageFileW
the resulting CVB Image object does not provide an ICameraSelect2 or IBoardSelect2 Interface since this would interfere with the entries in the INI file.
[in] | Seed | Initial start string for the discovery process. For example this could be the JAS of an interface in which case only devices on this interface would be listed in the newly created list. |
[in] | SearchFlags | Flags providing additional search criteria/configurations. See DDFlags for more information. |
[in] | Reserved | |
[out] | List | Pointer receiving the handle to the created list. |
[in] | DiscoverTimeoutMS | Timeout for the discovery in milliseconds on the last level. For example if it is specified in the SearchFlags that the max depth is DDFLAG_LVL_IFACE which would result in a list of available interfaces, the timeout would be used to when listing the available interfaces. |
cvbres_t __stdcall DOEntryGetInfo | ( | ATLIST | List, |
size_t | Index, | ||
DODiscoverInfoCommands | InfoCommand, | ||
char * | Info, | ||
size_t & | InfoSize | ||
) |
Retrieve information on one entry in the discover list.
[in] | List | Handle to a discover list obtained through DODiscover or DODiscoverW . |
[in] | Index | Zero based index of the entry in the list to get the info for. |
[in] | InfoCommand | Entry in DDInfoCommands which specifies the information to retrieve. |
[in,out] | Info | String buffer to retrieve the information string. If NULL is passed to the function, infoSize will contain the required size on return. |
[in,out] | InfoSize | Size of the buffer provided in bytes. If Info passed a NULL pointer InfoSize contains the required buffer size upon return. |
cvbres_t __stdcall DOEntryGetInfoW | ( | ATLIST | List, |
size_t | Index, | ||
DODiscoverInfoCommands | InfoCommand, | ||
wchar_t * | Info, | ||
size_t & | InfoSize | ||
) |
Retrieve information on one entry in the discover list.
[in] | List | Handle to a discover list obtained through DODiscover or DODiscoverW . |
[in] | Index | Zero based index of the entry in the list to get the info for. |
[in] | InfoCommand | Entry in DDInfoCommands which specifies the information to retrieve. |
[in,out] | Info | Wide char string buffer to retrieve the information string. If NULL is passed to the function, infoSize will contain the required size on return. |
[in,out] | InfoSize | Size of the buffer provided in bytes. If Info passed a NULL pointer InfoSize contains the required buffer size upon return. |
cvbres_t __stdcall DOGetNumEntries | ( | ATLIST | List, |
size_t & | NumEntries | ||
) |
Inquire the number of entries in the discover list obtained through through DODiscover
or DODiscoverW
.
[in] | List | Handle to a discover list obtained through DODiscover or DODiscoverW . |
[out] | NumEntries | Number of entries. |
cvbres_t __stdcall DOSetFeature | ( | ATLIST | List, |
size_t | Index, | ||
const char * | NodeMapID, | ||
const char * | Name, | ||
const char * | Value | ||
) |
Set a GenICam feature in the nodemap of the terminal node of the current list to the provided value.
[in] | List | Handle to the discovery list. |
[in] | Index | Zero based index of the list entry. |
[in] | NodeMapID | Name of the nodemap to use. This is the name reported in through the INodemapHandle2 interface. For standard nodemaps these names comply with the default names of INodemapHandle2 |
[in] | Name | Name of the feature to set. |
[in] | Value | Value of the feature to set. |
cvbres_t __stdcall DOSetFeatureW | ( | ATLIST | List, |
size_t | Index, | ||
const wchar_t * | NMId, | ||
const wchar_t * | Name, | ||
const wchar_t * | Value | ||
) |
Set a GenICam feature in the nodemap of the terminal node of the current list to the provided value. All features attached to a node are set before the parameters are applied.
[in] | List | Handle to the discovery list. |
[in] | Index | Zero based index of the list entry. |
[in] | NMId | Name of the nodemap to use. This is the name reported in through the INodemapHandle2 interface. For standard nodemaps these names comply with the default names of INodemapHandle2 |
[in] | Name | Name of the feature to set. |
[in] | Value | Value of the feature to set. |
cvbres_t __stdcall DOSetParameter | ( | ATLIST | List, |
size_t | Index, | ||
const char * | Name, | ||
const char * | Value | ||
) |
Set an initialization parameter in the terminal node of one of the current list entries.
[in] | List | handle to the list. |
[in] | Index | Zero based index of the entry in the list. |
[in] | Name | Name of the parameter to set. |
[in] | Value | Value of the parameter to set |
cvbres_t __stdcall DOSetParameterW | ( | ATLIST | List, |
size_t | Index, | ||
const wchar_t * | Name, | ||
const wchar_t * | Value | ||
) |
Set an initialization parameter in the terminal node of one of the current list entries.
[in] | List | handle to the list. |
[in] | Index | Zero based index of the entry in the list. |
[in] | Name | Name of the parameter to set as wide char string. |
[in] | Value | Value of the parameter to set as wide char string. |
cvbres_t LoadDeviceObject | ( | const char * | AccessToken, |
DEVOBJ & | DeviceObject | ||
) |
Load a device object as specified by a JSON Access Path as retrieved through DODiscovery
. The returned object is not a CVB image as retrieved through LoadImageFile
. It provides at least the INodemapHandle2 interface.
[in] | AccessToken | Access Path of the driver node to open. |
[out] | DeviceObject | CVB Device Object (no image interface) |
cvbres_t LoadDeviceObjectW | ( | const wchar_t * | AccessToken, |
DEVOBJ & | DeviceObject | ||
) |
Load a device object as specified by a JSON Access Path as retrieved through DODiscovery
. The returned object is not a CVB image as retrieved through LoadImageFile
. It provides at least the INodemapHandle2 interface.
[in] | AccessToken | Access Path of the driver node to open. |
[out] | DeviceObject | CVB Device Object (no image interface) |