Capturing Images with Hardware Trigger

<< Click to Display Table of Contents >>

Navigation:  NxLib API > HowTo's > Basic Camera Operations >

Capturing Images with Hardware Trigger

When working with hardware trigger you need to make sure that the camera is continuously armed and waiting for a new trigger signal in order to not miss any trigger edges. The pseudo code opens a camera, enables hardware trigger and captures and processes a fixed number of images.

Code Examples

Using the Trigger and Retrieve commands and a polling wait loop

hmtoggle_plus1C++
hmtoggle_plus1Halcon/HDevelop

 

Using the Capture command and a fixed wait timeout

When using the Capture command the entire trigger, wait and re-arm sequence can be accomplished with a single command:

hmtoggle_plus1C++
hmtoggle_plus1Halcon/HDevelop

 

Using the Capture command with a polling loop

You can also use the Capture command to trigger the camera and retrieve images by polling:

hmtoggle_plus1C++
hmtoggle_plus1Halcon/HDevelop