Machine Vision Camera SDK (DotNet) Developer Guide
ref MyCamera.MVCC_STRINGVALUE pstValue
);
Parameters
strKey
[IN] Node name
pstValue
[OUT] Obtained node value, see details in MVCC_STRINGVALUE .
Return Value
Return MyCamera.MV_OK (0) on success; return Error Code on failure.
Remarks
You can call this API to get specified string node after connecting the device. All the node values of
"IString" in the list can be obtained via this API. strKey corresponds to the Name column.
Example
C#
using System;
using System.Runtime.InteropServices;
using System.IO;
using MvCamCtrl.NET;
namespace Param
{
class Program
{
static void Main(string[] args)
{
uint nTLayerType = MyCamera.MV_GIGE_DEVICE | MyCamera.MV_USB_DEVICE;
MyCamera.MV_CC_DEVICE_INFO_LIST stDevList = new MyCamera.MV_CC_DEVICE_INFO_LIST();
int nRet = MyCamera.MV_CC_EnumDevices_NET(nTLayerType, ref stDevList);
if (MyCamera.MV_OK != nRet)
{
Console.WriteLine("Enum device failed:{0:x8}", nRet);
return;
}
Console.WriteLine("The number of devices found: " + Convert.ToString(stDevList.nDeviceNum));
if (0 == stDevList.nDeviceNum)
{
return;
}
MyCamera.MV_CC_DEVICE_INFO stDevInfo;
//Change the device information structure pointer to device information structure
79
    "