Machine Vision Camera SDK (DotNet) Developer Guide
4.1.9 MvCamCtrl.NET::MyCamera::MV_CC_OpenDevice_NET
Open device (connect to device).
API Definition
int MV_CC_OpenDevice_NET(
uint nAccessMode,
ushort nSwitchoverKey
);
Parameters
nAccessMode
[IN] Device access mode, the default mode is exclusive, see details in the following table:
Macro Definition
Value
Description
MyCamera.MV_ACCESS_Exclusive
1
Exclusive permission, for other Apps,
only reading from CCP register is
allowed.
MyCamera.MV_ACCESS_
ExclusiveWithSwitch
2
Preempt permission from Mode 5, and
then open as exclusive permission.
MyCamera.MV_ACCESS_Control
3
Control permission, for other Apps, all
registers are allowed to read from.
MyCamera.MV_ACCESS_
ControlWithSwitch
4
Preempt permission from Mode 5, and
then open as control permission.
MyCamera.MV_ACCESS_
ControlSwitchEnable
5
Open as the control permission which
can be preempted.
MyCamera.MV_ACCESS_
ControlSwitchEnableWithKey
6
Preempt permission from Mode 5, and
then open as control permission which
can be preempted.
MyCamera.MV_ACCESS_Monitor
7
Open device in read mode, which is
applicable to control permission.
nSwitchoverKey
[IN] Key for switching permission. By default, it is none. It is valid when the access mode
supporting permission switch (2/4/6 mode).
Return Value
Return MyCamera.MV_OK (0) on success; return Error Code on failure.
35
    "