Machine Vision Camera SDK (DotNet) Developer Guide
If 0 <> nRet Then
Console.WriteLine("Stop grabbing failed!")
End If
Console.WriteLine("Start grabbing succeed!")
'Close camera
nRet = dev.MV_CC_CloseDevice_NET()
If 0 <> nRet Then
Console.WriteLine("Close device failed!")
End If
Console.WriteLine("Close device succeed!")
'Destroy handle
nRet = dev.MV_CC_DestroyDevice_NET()
If 0 <> nRet Then
Console.WriteLine("Destroy device failed!")
End If
Console.WriteLine("Destroy device succeed!")
End Sub
End Module
4.1.6 MvCamCtrl.NET::MyCamera::MV_CC_CreateDevice_NET
Create handle.
API Definition
int MV_CC_CreateDevice_NET(
ref MyCamera.MV_CC_DEVICE_INFO stDevInfo
);
Parameters
stDevInfo
[IN] Device information, including device version, MAC address, transport layer type, and other
device information. See the structure MV_CC_DEVICE_INFO for details.
Return Values
Return MyCamera.MV_OK (0) on success; and return Error Code on failure.
Remarks
• Create the required resources in the library and initialize the internal modules according to the
device information. Create handle via this API, and log files will be automatically generated and
saved in the folder of MvSdkLog under the directory of the current executable program. You can
27
    "