
Machine Vision Camera SDK (DotNet) Developer Guide
4.2 Parameter Settings
4.2.1 MvCamCtrl.NET::MyCamera::MV_CC_GetBoolValue_NET
Get the value of camera boolean type node.
API Definition
int MV_CC_GetBoolValue_NET(
string
strKey,
ref bool pbValue
);
Parameters
strKey
[IN] Node name
pbValue
[OUT] Obtained node value
Return Value
Return MyCamera.MV_OK (0) on success; return Error Code on failure.
Remarks
After the device is connected, call this API to get specified bool nodes. The node values of IBoolean
can be obtained through this API, strKey value 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)
{
45






















































































































































































































































































































































































































































































































































































































