
User Manual of Machine Vision Camera SDK Demo (VB)
4.3.2 APIs for Getting and Setting
In the Demo, the APIs used to get and set IO are MV_CC_GetEnumValue_NET(ByVal strKey As String, ByRef
pstValue As MyCamera.MVCC_ENUMVALUE) and MV_CC_SetEnumValue_NET(ByVal strKey As String, ByVal
nValue As UInteger).
In the SDK, the API function which is similar with the format of Set or Get + Data Type +Value is a general API
used to get or set any camera properties. The first parameter in the general API is property name, which is a
string type string and can be found in the Feature Tree of MVS, while the second parameter is the obtained or
configured property value.
4.3.3 IO Operation
The type of property nodes <LineSelector> and <LineMode> in the Demo is Enumeration type. Call general API
can realize the property operations.
Get:
Dim stLineSelector As MyCamera.MVCC_ENUMVALUE =
New MyCamera.MVCC_ENUMVALUE
nRet = dev.MV_CC_GetEnumValue_NET("LineSelector", stLineSelector)
Dim stLineMode As MyCamera.MVCC_ENUMVALUE =
New MyCamera.MVCC_ENUMVALUE
nRet = dev.MV_CC_GetEnumValue_NET("LineMode", stLineMode)
Set:
nRet = dev.MV_CC_GetEnumValue_NET("LineSelector ", stLineSelector)
nRet = dev.MV_CC_GetEnumValue_NET("LineMode", stLineMode)
7













