From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Video to LED Matrix Display Converter in LabVIEW

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

    Software

  • LabVIEW

Code and Documents

Attachment

Download All

Overview

The program was created to convert SD quality video to a 32x32 color array which can be displayed on a 32x32 LED array.

 

Description

The code converts a 640x480 live video feed into a 32x32 video feed. The 32x32 2D array can then be sent to a device controlling a color LED matrix array.

 

The RAW image is divided up into 32x32 sections and each section is analysed using the Vision Development Module. Once small section has been analysed it is passed back into a 2D array and then displayed on the front panel and also written to a Network shared variable. The network shared variable can be read by a device such as a myRIO or sbRIO which could then be used to output the color array to an LED matrix.

 

It is possible to change the resolution and size of the output array via the code.

 

Requirements

  • LabVIEW 2013 (or compatible).
  • Vision Development Module
  • Vision Acquisition Software

 

Steps to Implement or Execute Code

  1. Ensure that your camera is at the resolution of 640x480
  2. Run the program.
  3. Use the Mirror Button to mirror the image.
  4. Use the Freeze/Unfreeze button to pause acquisition.
  5. Press the Stop button to exit.

Additional Information or References 

Front Panel

FP.PNG

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

__________________________
Aidan H

Applications Engineer
National Instruments UK & Ireland

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

Comments
Jaimejimmmm
Member
Member
on

Could you help me changing the size of the display RGB?