
Machine Vision Camera SDK (C) Developer Guide
Example
The following sample code is for reference only.
MV_GENTL_DEV_INFO_LIST m_stDevList;
memset(&m_stDevList, 0, sizeof(MV_GENTL_DEV_INFO_LIST));
//Enumerate all devices within subnet
int nRet = MV_CC_EnumDevicesByGenTL(m_stIFList.pIFInfo[0],&m_stDevList);
if (MV_OK != nRet)
{
return;
}
MV_CC_EnumInterfacesByGenTL
Enumerate interfaces via GenTL.
API Definition
int MV_CC_EnumInterfacesByGenTL(
MV_GENTL_IF_INFO_LIST
*pstIFList,
const char
*pGenTLPath
);
Parameters
pstIFList
[IN] [OUT] Interface list, see the structure MV_GENTL_IF_INFO_LIST for details.
pGenTLPath
[IN] GenTL CTI file path
Return Value
Return MV_OK(0) on success, and return Error Code on failure.
Remarks
When importing the CTI file, you should check if the file has been saved. If the CTI file is saved, you
can directly use the saved dynamic link library; if the CTI file is not saved, you should save it first
and enumerate the interfaces.
Example
The following sample code is for reference only.
MV_GENTL_IF_INFO_LIST m_stIFList;
memset(&m_stIFList, 0, sizeof(MV_GENTL_IF_INFO_LIST));
//Enumerate interfaces based on GenTL
int nRet = MV_CC_EnumInterfacsByGenTL(&m_stIFList, chCtiPath);
if (MV_OK != nRet)
{
88



































































































































































































































































































































































































