
User Manual of Machine Vision Camera SDK Demo (VC6.0)
as input only; Line1 – Can be configured as output only; Line2 – Can be configured input or output.
LineMode: Input or output mode.
4.3.2 APIs for Getting and Setting
In the Demo, the APIs used to get and set IO are MV_CC_GetEnumValue(IN void* handle,IN const char*
strKey,OUT MVCC_ENUMVALUE *pEnumValue) and MV_CC_SetEnumValue(IN void* handle,IN const char*
strKey,IN unsigned int nValue).
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:
nRet = m_pcMyCamera->GetEnumValue("LineSelector", &stSelector);
nRet = m_pcMyCamera->GetEnumValue("LineMode", &stSelector);
Set:
nRet = m_pMyCamera.SetEnumValue("LineSelector", nValue);
nRet = m_pMyCamera.SetEnumValue("LineMode", nValue);
8













