Create RGB Color Bars Insertion Test Signal

NI 5431 Composite Video Generator

NI 5431 Composite Video Generator
Create RGB Color Bars Insertion Test Signal

This VI shows you how to create an ITS data file based on RGB data. The example creates an RGB color bar test pattern and saves the data as a file called test create RGB ITS.its. The file can then be recalled using the Intermediate insert ITS in composite signal VI.

You can access this VI example in the LabVIEW palette by selecting Functions»Video Generation»Generator Examples»Create RGB color bars Insertion Test Signal.

To generate an RGB Insertion Test Signal, follow these steps:

  1. After selecting the example VI in the LabVIEW palette, click the LabVIEW diagram to place the icon there. Double-click the VI example icon to open it in LabVIEW.
  2. Note  You can also access this VI from the installation drive by double-clicking the Composite Video Generator Examples.llb library. The File Dialog box appears. Click Create RGB color bars Insertion Test Signal.vi, then click OK. The VI opens in LabVIEW.
    Note  This VI has predefined parameters for demonstration purposes. If you have not installed your software in your C: drive root directory, correct the file path of the ITS signal to be saved on the VI front panel so it matches your installation.
  3. Make sure theDevice ID control value matches device number assigned in MAX during device configuration. Refer to the NI Signal Sources Getting Started Guide for more information about device configuration.
  4. On the front panel of the VI, using the LabVIEW palette operator tool and the up and down arrows on the Video format control, select the appropriate video format.
  5. Run the VI. The RGB ITS appears in the VI front panel and the ITS data are saved on your disk. Refer to the NI-Video Attribute List topic for more information.

An RGB ITS is defined as three data arrays (R, G, and B) of unsigned 16-bit data (U16). The size of the arrays depends on the selected video format and the specified active video duration, which can be modified using the Image duration (µs) attribute. The default value for an NTSC signal is 52.2 µs, corresponding to approximately 1,044 samples at the nominal sampling frequency of 20.013 MHz. For B-PAL and SECAM, the default active video duration is 52.0 µs, corresponding to 1,040 samples at the nominal sampling frequency of 20.000 MHz. Refer to the NI-Video Attribute List topic for more information.

Therefore, the default size of the array is 1,044 for M-NTSC and 1,040 for 50 Hz-type PAL or SECAM. The data are scaled so that 0 corresponds to black or 0 IRE (if no setup is applied), and 65,535 (the maximum value for unsigned 16-bit data) corresponds to white or 100 IRE.