Basic Create Video File from BMP Image and Save

NI 5431 Composite Video Generator

NI 5431 Composite Video Generator
Basic Create Video File from BMP Image and Save

This basic VI example only saves the calculated NTSC, PAL, or SECAM data array. It does not download the data array to the hardware.

You can access this VI example in the LabVIEW palette by selecting Functions»Video Generation»Generator Examples»Basic create video file from BMP image and save.

To save the calculated data array, follow these steps:

  1. After selecting the example VI icon 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 the Basic create video file from BMP image and save.vi, then click OK. The VI opens in LabVIEW.
  3. On the front panel of the VI, using the LabVIEW palette operator tool and the up and down arrows on the Video type control, select the appropriate video format.
  4. Run the VI. An Input BMP File? dialog box appears, prompting you to select the bitmap image file to convert to a binary video data file.
  5. Double-click the BMPs shortcut to browse in the appropriate subdirectory for the appropriate bitmap image file based on the video format you chose in step 2. Refer to Basic Examples for more information.
  6. Double-click the subdirectory, then double-click a .bmp file. An Output BIN file? dialog box appears.
  7. Double-click the Video data files shortcut to access the appropriate subdirectories. Select the subdirectory based on the video format you selected in the Video type control. The new binary video data file is saved in this subdirectory.
  8. Enter a .bin file name for the new binary video file being saved.
  9. Note  To avoid being prompted for the file paths, enter the file paths in the Input BMP file path control and the Output video binary file path control before running the VI.
  10. Click Save. A new binary video data file is created and saved in the Video data files\... subdirectory you selected in step 6.