
Machine Vision Camera SDK (C) Developer Guide
{
printf("Open Device fail! nRet [0x%x]\n", nRet);
break;
}
bDevConnected = true;
printf("Current device bauderate [0x%x]\n", nCurrentBaudrate);
//Shut device
nRet = MV_CC_CloseDevice(handle);
if (MV_OK != nRet)
{
printf("ClosDevice fail! nRet [0x%x]\n", nRet);
break;
}
bDevConnected = false;
//Destroy handle and release resource
nRet = MV_CC_DestroyHandle(handle);
if (MV_OK != nRet)
{
printf("Destroy Handle fail! nRet [0x%x]\n", nRet);
break;
}
printf("Device successfully closed.\n");
} while (0);
//Make sure the device is shutted down
if (nRet != MV_OK)
{
if ( bDevConnected )
{
MV_CC_CloseDevice(handle);
bDevConnected = false;
}
if (handle != NULL)
{
MV_CC_DestroyHandle(handle);
handle = NULL;
}
}
printf("Press a key to exit.\n");
WaitForKeyPress();
return 0;
}
MV_CAML_SetDeviceBauderate
Set device baud rate.
77



































































































































































































































































































































































































