
Machine Vision Camera SDK (C) Developer Guide
[IN] Device handle, which is returned by MV_CC_CreateHandle or
MV_CC_CreateHandleWithoutLog .
pstrName
[IN] Node name
pAccessMode
[OUT] Node access mode, see the enumeration MV_XML_AccessMode for details.
Return Value
Return MV_OK(0) on success, and return Error Code on failure.
Remarks
Before getting or setting node value, you can call this API to get the node read and write
permission to avoid failure.
Example
The following sample code is for reference only.
#include <stdio.h>
#include <Windows.h>
#include "process.h"
#include "conio.h"
#include "MvCameraControl.h"
//Wait for key press
void WaitForKeyPress(void)
{
while(!_kbhit())
{
Sleep(10);
}
_getch();
}
bool PrintDeviceInfo(MV_CC_DEVICE_INFO* pstMVDevInfo)
{
if (NULL == pstMVDevInfo)
{
printf("The Pointer of pstMVDevInfo is NULL!\n");
return false;
}
if (pstMVDevInfo->nTLayerType == MV_GIGE_DEVICE)
{
int nIp1 = ((pstMVDevInfo->SpecialInfo.stGigEInfo.nCurrentIp &
0xff000000) >> 24);
int nIp2 = ((pstMVDevInfo->SpecialInfo.stGigEInfo.nCurrentIp &
0x00ff0000) >> 16);
int nIp3 = ((pstMVDevInfo->SpecialInfo.stGigEInfo.nCurrentIp &
0x0000ff00) >> 8);
int nIp4 = (pstMVDevInfo->SpecialInfo.stGigEInfo.nCurrentIp &
129



































































































































































































































































































































































































