To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example demonstrates how to swap taps for Camera Link interfaces that do not support this feature out of the box.
Description
If you have a PCIe-1429 which you need to swap taps you may notice that you cannot currently setup the swap in the camera file as the PCIe-1429 does not have this circuitry.
Below is one option to programmatically swap the two taps in LabVIEW. Even though you cannot set the PCIe-1429 to swap taps, you can post process the image to swap the pixels after acquisition.
This example uses IMAQ ImageToArray to get the pixel data into an array and then Decimate 1D Array to separate the odd and even fields. Finally, use Interleave 1D Array to swap the two fields and IMAQ ArrayToImage to get the array back to the image data type.
IMAQ ArrayToImage is available in NI Vision Development Module (VDM). If you are working with a grayscale image and do not have VDM you can use an Intesity Graph to display your image from an array. This eliminates the need to use IMAQ ArrayToImage.
Description-Separate-2Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.