Machine Vision Camera SDK (C) Developer Guide
1. Call MV_CC_EnumDevices to enumerate all devices corresponding to specified transport
protocol within subnet.
The information of found devices is returned in the structure MV_CC_DEVICE_INFO_LIST by
pstDevList.
2. Optional: Call MV_CC_IsDeviceAccessible to check if the specified device is accessible before
opening it.
3. Call MV_CC_CreateHandle to create a device handle.
4. Optional: Perform one or more of the following operations to get/set different types
parameters.
Get/Set Camera Bool Node Value Call MV_CC_GetBoolValue / MV_CC_SetBoolValue
Get/Set Camera Enum Node Value Call MV_CC_GetEnumValue / MV_CC_SetEnumValue
Get/Set Camera Float Node Value Call MV_CC_GetFloatValue / MV_CC_SetFloatValue
Get/Set Camera Int Node Value Call MV_CC_GetIntValueEx / MV_CC_SetIntValueEx
Get/Set Camera String Node Value Call MV_CC_GetStringValue / MV_CC_SetStringValue
Set Camera Command Node
Call MV_CC_SetCommandValue
Note
You can get and set the acquisition mode including single frame acquisition, multi-frame
acquisition, and continuous acquisition via the API MV_CC_GetEnumValue (handle,
"AcquisitionMode", &stEnumValue) and MV_CC_SetEnumValue (handle, "AcquisitionMode",
value).
You can set triggering parameters.
a. Call MV_CC_SetEnumValue (handle, "TriggerMode", value) to set the triggering mode.
b. If the triggering mode is enabled, call MV_CC_SetEnumValue (handle, "TriggerSource",
value) to set the triggering resource. The triggering source includes triggered by hardware
and software.
c. Call MV_CC_GetFloatValue (handle, " TriggerDelay", &stFloatValue) and
MV_CC_SetFloatValue (handle, " TriggerDelay", value) to get and set the triggering delay
time.
d. When triggered by software, call MV_CC_SetCommandValue (handle, "TriggerSoftware ")
to capture; when triggered by hardware, capture by device local input.
You can set the image parameters, including image width/height, pixel format, frame rate, AIO
offset, gain, exposure mode, exposure value, brightness, sharpness, saturation, grayscale,
white balance, Gamma value, and so on, by calling the following APIs: MV_CC_SetIntValueEx ,
MV_CC_SetEnumValue , MV_CC_SetFloatValue , MV_CC_SetBoolValue ,
MV_CC_SetStringValue , MV_CC_SetCommandValue .
5. Acquire images.
1) Call MV_CC_RegisterImageCallBackEx to set data callback function.
2) Call MV_CC_StartGrabbing to start the acquisition.
16
    "