Register Events

You are currently viewing the documentation for the latest version (2.5.0). To access a different version, click the "Switch version" button located in the upper-right corner of the page.

■ If you are not sure which version of the product you are currently using, please feel free to contact Mech-Mind Technical Support.

This topic describes how to register a profiler event and define the event processing mechanism by using the register_profiler_event sample.

The sample includes the following events:

  • Data acquisition start (EventFrameStart)

  • Line trigger missed (EventLineTriggerMissed)

  • Input signal terminal level change events (Line[X]RisingEdge, Line[X]FallingEdge)

    [X] refers to the terminal number. Range: 1–6.
Please refer to Usage Guide for HALCON Samples to obtain the samples and check the prerequisites for using the samples.

Run the Sample

Follow these steps to run the sample:

  1. Open the sample in HDevelop: Open HDevelop, and drag the sample into HDevelop.

  2. Step over the program (click the step over button in the toolbar repeatedly), until the Variable Inspect: MechEyeProfilerInfos window pops up.

  3. This window displays all the available laser profilers. Double-click the laser profiler that you want to connect, and copy the name after unique_name: or user_name:.

    camera name
    user_name is the custom laser profiler name. You can customize the camera name in Mech-Eye Viewer.
  4. Locate the following line, and replace LNX with the copied unique_name or user_name.

    DeviceInfo := 'LNX'
  5. Run the sample by clicking run in the toolbar or pressing the F5 key.

  6. The obtained point cloud is displayed in the Graphics Window. At the same time, a window pops up in the upper left corner of the software, displaying event details.

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.