Machine Vision Camera SDK (C) Developer Guide
printf("error: CloseDevice fail [%x]\n", nRet);
return;
}
//Destroy handle and release resource
nRet = MV_CC_DestroyHandle(m_handle);
if (MV_OK != nRet)
{
printf("error: DestroyHandle fail [%x]\n", nRet);
return;
}
}
4.8.5 MV_CC_GetIntValue
Get the value of camera node with integer type.
API Definition
int MV_CC_GetIntValue(
void
*handle,
const char
*strKey,
MVCC_INTVALUE *pIntValue
);
Parameters
handle
[IN] Device handle, which is returned by MV_CC_CreateHandle or
MV_CC_CreateHandleWithoutLog .
strKey
[IN] Node name, refer to MvCameraNode for details.
pIntValue
[OUT] Obtained node value
Return Value
Return MV_OK(0) on success, and return Error Code on failure.
Remarks
After the device is connected, call this interface to get specified int nodes. For value of strKey, refer
to MvCameraNode. The node values of IInteger can be obtained through this interface, strKey
value corresponds to the Name column.
Example
The following sample code is for reference only.
142
    "