Machine Vision Camera SDK (DotNet) Developer Guide
Parameters
nTLayerType
[IN] Transport layer protocol types, which is represented by bit, supporting multiple selections.
The available protocol types are shown below:
Macro Definition
MyCamera.MV_UNKNOW_DEVICE
MyCamera.MV_GIGE_DEVICE
MyCamera.MV_1394_DEVICE
MyCamera.MV_USB_DEVICE
MyCamera.MV_CAMERALINK_DEVICE
Value
0x00000000
0x00000001
0x00000002
0x00000004
0x00000008
Description
Unknown Device Type
GigE Device
1394-a/b Device
USB3.0 Device
CameraLink Device
E.g., if nTLayerType == MyCamera.MV_GIGE_DEVICE | MyCamera.MV_USB_DEVICE, it indicates
that GigE device and USB3.0 device are both supported.
stDevList
[OUT] Matched device information list, see the structure MV_CC_DEVICE_INFO_LIST for details.
pManufacturerName
[IN] Manufacturer name, e.g., "abc": enumerate abc cameras
Return Values
Return MyCamera.MV_OK (0) on success; and return Error Code on failure.
Example
C#
using System;
using System.IO;
using MvCamCtrl.NET;
namespace EnumDevicesEx
{
class Program
{
static void Main(string[] args)
{
uint nTLayerType = MyCamera.MV_GIGE_DEVICE | MyCamera.MV_USB_DEVICE;
MyCamera.MV_CC_DEVICE_INFO_LIST stDevList = new MyCamera.MV_CC_DEVICE_INFO_LIST();
int nRet = MyCamera.MV_CC_EnumDevicesEx_NET(nTLayerType, ref stDevList,"abc");
if (MyCamera.MV_OK != nRet)
{
Console.WriteLine("Enum device failed:{0:x8}", nRet);
22
    "