Machine Vision Camera SDK (DotNet) Developer Guide
Macro Definition
MyCamera.MV_ACCESS_Exclusive
MyCamera.MV_ACCESS_
ExclusiveWithSwitch
MyCamera.MV_ACCESS_Control
MyCamera.MV_ACCESS_
ControlWithSwitch
MyCamera.MV_ACCESS_
ControlSwitchEnable
MyCamera.MV_ACCESS_
ControlSwitchEnableWithKey
MyCamera.MV_ACCESS_Monitor
Value
1
2
3
4
5
6
7
Description
Exclusive permission, for other Apps,
only reading from CCP register is
allowed.
Preempt permission from Mode 5,
and then open as exclusive
permission.
Control permission, for other Apps,
all registers are allowed to read
from.
Preempt permission from Mode 5,
and then open as control
permission.
Open as the control permission
which can be preempted.
Preempt permission from Mode 5,
and then open as control permission
which can be preempted.
Open device in read mode, which is
applicable to control permission.
Return Value
Return true for accessible, and return false for no permission.
Remarks
• You can read the device CCP register value to check the current access permission.
• Return false if the device does not support the modes MV_ACCESS_ExclusiveWithSwitch,
MV_ACCESS_ControlWithSwitch, MV_ACCESS_ControlSwitchEnableWithKey. Currently the
device does not support the 3 preemption modes, neither do the devices from other
mainstream manufacturers.
• This API is not supported by CameraLink device.
Example
C#
using System;
using System.Runtime.InteropServices;
using System.IO;
using MvCamCtrl.NET;
namespace IsDeviceAccessible
24
    "