Example Code

Blink LED on a cRIO Target

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.

    Software

  • LabVIEW FPGA Module
  • LabVIEW

Code and Documents

Attachment

Download All

Overview

The example demonstrates how to toggle the FPGA LED.

 

Description
The FPGA LED can be used to show the user that a VI on the FPGA is running.

In this example the FPGA LED blinks with a fixed interval of 1000 ms.

The following link shows an example blinking the User LED with a Real-Time VI:

http://forums.ni.com/t5/Example-Programs/Toggle-User-LED-on-cRIO-Target/ta-p/3519075

 

Requirements

 Software

  • LabVIEW Full Development System 2012(or compatible)
  • LabVIEW Real-Time Module 2012 (or compatible)
  • LabVIEW FPGA Module 2012 (or compatible)
  • NI-CompactRIO 12.0 (or compatible)

 Hardware

  • any NI Real-Time Target with a user programmable LED (e.g. NI CompactRIO)

Steps to Implement or Execute Code

  1. Run the Blink FPGA.vi

Additional Information or References

 FPGA Blink.vi - Front Panel.png
 
FPGA Blink.vi - Block Diagram.png
 

**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text 'NIVerified'. Read here for more information about the new Example Guidelines and Community Platform.**

Kevin Fort
Principal Software Engineer
NI

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