跳转到内容
STAGING SERVER
DEVELOPMENT SERVER

Image Acquisition and I/O Control (Stereo ace)#

Basler Stereo ace cameras are equipped with one opto-coupled input line and one fast output line.

input line 允许您控制相机,例如,在特定时间点触发图像拍摄。output line 可让您检索有关相机的信息,例如,正在拍摄图像时。

I/O 线路#

Stereo ace cameras provide one opto-coupled input line and one output line:

  • Out2 is preconfigured as the output line of the Stereo ace camera.
  • In1 is preconfigured as the input line of the Stereo ace camera.
  • Out1 is an internal line for triggering the projector. It can't be used as an output line.

您不能更改 I/O 线路的线路模式。

光电耦合输入线路#

下图展示了使用光电耦合输入线路的典型电路:

输入线路图

输入线路连接到引脚 6。引脚 5 接地。

General Purpose Output Line#

NOTICE: Applying incorrect electrical signals to the camera's GPO line can severely damage the camera.

在将任何外部电路连接到 GPIO 线路之前,请使用 Line Mode 功能,配置输入或输出线路。

确保按以下规定施加适当的输入或输出信号电压。

The following diagram shows a typical circuit using the output line:

输出线路图

The output line Out2 is connected to pin 4. Pin 5 is connected to ground.

电气要求#

输入线路#

电压 描述
30 VDC Absolute maximum voltage
This voltage must never be exceeded. Doing so may damage the camera and voids the warranty.
0-24 VDC 安全工作范围
0–1.0 VDC 逻辑 0
>2.2 VDC 逻辑 1
  • 最小电流:5 mA
  • Typical current: 5–15 mA

未实现信号的去抖动。因此,您必须确保输入线上的电信号是干净的(例如,通过使用 PLC 输出或应用低通滤波器)。

输出线路#

电压 描述
30 VDC Absolute maximum voltage
This voltage must never be exceeded. Doing so may damage the camera and voids the warranty.
3.3-24 VDC 安全工作范围
<3.3 VDC Unreliable GPIO output
  • 内部上拉电阻:≈650 Ω,集电极开路。在许多应用中必须提供一个额外的上拉电阻。
  • Maximum current: 50 mA
  • Leakage current: <60 µA

I/O 线缆#

Basler 建议使用 Power-I/O 线缆 M12,M,8P/开放。线缆文档包括了 I/O 线的引脚输出和颜色编码。

特征和配置#

即: DigitalIOControl feature category contains various features for configuring and monitoring I/O line operation.

Line Selector#

The Line Selector feature allows you to select the I/O line that you want to configure. To select a line, set the LineSelector parameter to the desired I/O line, e.g., Line1.

Line Status#

要确定 I/O 线路的状态:

  1. 设置 LineSelector parameter to In1 for the input line or Out2 for the output line.
  2. Get the value of the LineStatus parameter.

A value of false (0) means that the line status was low at the time of polling. A value of true (1) means that the line status was high at the time of polling.

Line Source(仅输出线路)#

The output line Out2 can be configured to provide different signals via the LineSource parameter. This allows you to monitor the status of the camera or to control external devices.

要配置线路源:

  1. 设置 LineSelector parameter to Out2.
  2. 设置 LineSource 参数设置为以下值:
    • Low: The line is always low.
    • High: The line is always high.
    • ExposureActive: The line is enabled during the exposure of each frame.
    • ExposureAlternateActive: The line is enabled during the exposure of every second frame.

You can use the ExposureActive signal to monitor whether the camera is currently exposing.

Line Inverter#

即: LineInverter parameter inverts the electrical signal level of an I/O line, i.e., its 线路状态 from high to low or vice versa.

要启用 Line Inverter:

  1. 设置 LineSelector parameter to the desired I/O line.
  2. 设置 LineInverter parameter to true to invert the electrical signal level of the I/O line selected or to false to disable inversion.

示例: If the input line In1 is configured as a trigger input source, inverting the signal level means that the trigger will come at the falling edge of the trigger signal instead of on the rising edge.

For the output line Out2, the level of the selected output signal is inverted.

自由运行和触发器操作#

可以在 free run 模式和 triggered mode 下操作相机。

free run 中,根据配置的帧速率(默认值或通过 AcquisitionFrameRate 参数指定)在内部触发相机。

While in free run mode, you can synchronize the triggering of multiple cameras using the Precision Time Protocol feature.

In triggered mode, an external trigger source is used to trigger the camera, e.g., via software trigger or via hardware trigger (using input line In1).

The trigger is always a FrameTrigger, i.e., it triggers the acquisition of a single frame in the current operating mode.

自由运行图像采集#

要启用自由运行图像采集:

  1. 设置 TriggerSelector parameter to FrameStart.
  2. 设置 TriggerMode parameter to Off.

触发图像采集#

信息

New trigger signals are ignored until the camera is ready to accept another trigger. The minimum interval between two trigger signals depends on the acquisition frame rate.

软件触发器#

要通过软件触发器启用图像采集:

  1. 设置 TriggerSelector parameter to FrameStart.
  2. 设置 TriggerSource parameter to Software.
  3. 设置 TriggerMode parameter to On.
  4. Trigger a single frame with TriggerSoftware.
    A single disparity map is now grabbed, processed, and delivered to the client software.

确保在软件触发器接收图像之前开始采集。

硬件触发器#

要通过硬件触发器启用图像采集:

  1. 设置 TriggerSelector parameter to FrameStart.
  2. 设置 TriggerSource parameter to In1.
  3. 设置 TriggerMode parameter to On.
    Images are triggered on the rising edge of In1 (if the LineInverter parameter is set to false) or the falling edge (if the LineInverter parameter is true). The image is sent to the host computer after it has been grabbed and processed by the camera.

确保在硬件触发器接收图像之前开始采集。