
User Manual of Machine Vision Camera SDK Demo (VS2008)
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);
7
















