
Machine Vision Camera SDK (DotNet) Developer Guide
4.1.3 MvCamCtrl.NET::MyCamera::MV_CC_EnumDevices_NET
Enumerate all devices with specific transport protocol in the subnet.
API Definition
static int MV_CC_EnumDevices_NET(
uint
nTLayerType,
ref MyCamera.MV_CC_DEVICE_INFO
);
stDevList
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 for details.
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 EnumDevices
{
class Program
{
static void Main(string[] args)
{
20






















































































































































































































































































































































































































































































































































































































