跳转到内容

Basler Vision Connector Messaging: Retrieving Camera Parameter List#

With the following message, you can request a list of available parameters.

The GetParameters command is allocated to one of the following node maps:

@CameraDevice -> CInstantCamera::GetNodeMap

@CameraInstance -> CInstantCamera::GetInstantCameraNodeMap

@DeviceTransportLayer -> CInstantCamera::GetTLNodeMap

@StreamGrabber0 -> CInstantCamera::GetStreamGrabberNodeMap

@EventGrabber -> CInstantCamera::GetEventGrabberNodeMap

If no node map is defined, the @CameraDevice default node map is used. This node map represents the camera parameters. All other commands only operate on the @CameraDevice default node map.

The syntax for using the node map is as follows:

    "ParameterList": [
        "Width",
        "@CameraDevice/Height"
    ]

For an explanation of node maps, see the pylon API documentation.

You can find documentation about the available node maps at:

JSON Payload#

Field Optional 键入 描述
TransactionID String Transaction identification
操作 String Method called. Fixed value: GetParameters
DeviceID String Device identification
ParameterList Array of string The list of parameters to be read
{
    "TransactionID": "2345645",
    "Action": "GetParameters",
    "DeviceID": "548451887",
    "ParameterList": [
        "Width",
        "@CameraDevice/Height"
    ]
}

Response Object#

Field Optional 键入 描述
TransactionID String Transaction identification
ReturnCode Integer (32-bit unsigned) Message code following Message Codes
消息 String Response message
ParameterList Parameter Object Array Parameter object array containing the parameter details

Parameter Object#

Field Optional 键入 描述
名称 String Unique parameter name
DisplayName String Display name of the parameter for the user interface
键入 String Parameter value type. Possible values: String, Integer, Float, Enumeration, Boolean
String/ Integer (64-bit signed)/ Float/ Bool Currently defined value. For enumerations, the type of value must be a string.
IntValue Int On enumerations, it's the integer defined.
Readable Boolean Flag indicating whether the parameter can be read. The readable flag depends on the current camera state.
Writable Boolean Flag indicating whether the parameter can be written. The writable flag depends on the current camera state.
最小值 Integer (64-bit signed)/ Float Minimum allowed value for numeric type parameters
最大值 Integer (64-bit signed)/ Float Maximum allowed value for numeric type parameters
Increment Integer (64-bit signed)/ Float Allowed increment for the parameter
EnumEntries Enum Entries Array Array containing the entries available for the parameter

Enum Entries#

Field Optional 键入 描述
DisplayName String Display name of the enum entry for the user interface
String Parameter value that needs to be set
IntValue Integer (64-bit signed) Integer value of the enum entry
描述 String Enum entry description
{
  "TransactionID": "2345645",
  "ReturnCode": 0,
  "Message": "Parameters read successfully",
  "ParameterList": [
    {
      "Name": "@CameraDevice/Width",
      "DisplayName": "Width",
      "Type": "Integer",
      "Value": 1024,
      "Writable": true,
      "Minimum": 1,
      "Maximum": 4096,
      "Increment": 1
    },
    {
      "Name": "PixelFormat",
      "DisplayName": "Pixel Format",
      "Type": "Enumeration",
      "Value": "Mono8",
      "IntValue": 17301505,
      "Writable": true,
      "EnumEntries": [
        {
          "DisplayName": "Mono 8",
          "Value": "Mono8",
          "IntValue": 17301505,
          "Description": "This enumeration value sets the pixel format to Mono 8."
        },
        {
          "DisplayName": "Mono 10",
          "Value": "Mono10",
          "IntValue": 17825795,
          "Description": "This enumeration value sets the pixel format to Mono 10."
        },
        {
          "DisplayName": "Mono 12",
          "Value": "Mono12",
          "IntValue": 17825797,
          "Description": "This enumeration value sets the pixel format to Mono 12."
        },
        {
          "DisplayName": "Mono 16",
          "Value": "Mono16",
          "IntValue": 17825799,
          "Description": "This enumeration value sets the pixel format to Mono 16."
        }
      ]
    }
  ]
}