Often times it is necessary to trigger an acquisition on a linescan camera to ensure that the resulting image is correct. This can be done in multiple ways. In this lesson we will focus on doing triggered acquisition from a TTL signal generated in MAX.
Most cameras default to continuous free-run acquisition mode. In order to do a triggered acquisition, we must first ensure that the camera is configured for edge-controlled triggered acquisition. We must also associate the SCB-68 accessory with the DAQ Device.
Note: If your camera model does not appear this means that the camera ICD file is not installed on your computer. Refer to the What is a Camera File and Do I Need to Generate One to Work With NI Vision Software for instructions on download and installing camera files.
Note: If the only option the CC1 External Type Number will give you is “0”, then make sure the framegrabber and Camera Link IO Board have a good connection using the 50-Pin Ribbon Cable. There should be a lit green LED on the Camera link IO Board. After completing these steps, your screen should look similar to the image below.
Most digital DAQ cards can generate TTL signals on the counter output. These signals can be routed to the camera control line and used for triggering acquisition on the framegrabber. In the following steps we will configure this pulse train in MAX using test panels.
Now that we are generating a TTL pulse in MAX, we can configure an acquisition in LabVIEW to trigger off of this pulse. For this example we will make use of one of the shipping examples included with the Vision Acquisition Software.
Select your camera from the list and click Next>>
Choose Continuous Acquisition with inline processing for the acquisition mode. Choose Acquire Every Image from the drop-down menu and click Next>>.
Under the Triggers tab select TTL TRIG_(1) from the drop-down menu. Set the Action to Every Line and Polarity to Rising Edge. When you are finished your window should look like the image below.
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.