Example Code

Use HL Grab With Two Boards Example to Synchronize Each Frame

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • Machine Vision

    Driver

  • NI Vision Acquistion Software

Code and Documents

Attachment

Download All

Overview

This example is a modification of a shipped example that synchronizes each particular frame instead of the acquisition's start for two boards.

Description

The "HL Grab with Two Boards.VI" shipped example uses the NI Vision Acquisition Software to synchronize the start of an acquisition in two different frame grabber boards.

By exporting the Frame Start signal from one camera to the Trigger Each Buffer trigger configuration of the other camera, the first one effectively becomes a Master while the second a Slave. The master triggers the slave when it starts to grab a frame. In order to achieve this, the boards need to be connected with a RTSI line.

Steps to Implement or Execute Code

  1. Connect the two boards via a RTSI Line
  2. Select the cameras in the front panel by Inteface Name
  3. Run the VI

Requirements

Software

LabVIEW 8.5 "or compatible"

Vision Acquisition Software 8.5 "or compatible"

Hardware

Since the trigger is exported over the RTSI line, this setup requires a RTSI cable between the master board and the slave board.

Additional Information or References

VI Snippet

HL_Grab_With_Two_boards_Snippet.png

**This document has been updated to meet the current required format for the NI Code Exchange. For more details visit this discussion thread**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Todd S.
NI Employee (retired)
on

Thanks for posting!  Could you add a picture of the code to give us an idea what it looks like before we download?

Todd S.
LabVIEW Community Manager
National Instruments
Contributors