Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How Do I Access the User1 LED On My Compact FieldPoint or CompactRIO controller?

Primary Software: LabVIEW Modules>>Real-Time Module
Primary Software Version: 8.5
Primary Software Fixed Version: N/A
Secondary Software: N/A
Hardware: Compact FieldPoint>>Controllers, Compact FieldPoint>>Controllers

Problem:
I have a cFP/cRIO controller and I want to use the User1 LED to give status information to a user looking at the unit. This might be for the purpose of indicating that the unit has booted successfully or that communication has been established with a host.  How can I do this?

Solution:
You can only access the User1 LED from the RT code, so on a cRIO system you can not change the state of the LED from the FPGA. 

To set the state of the LED you need to open a VI for development on the RT target. Then go to the block diagram and open the functions palette. Go to Real-Time >> Real-Time Utilities >> RT LEDs.vi.  The main information you need to supply is LED Number and State. 

You can find out full options for the State input in the detailed help of the RT LEDs function. Simply put, however, 0 is LED off and 1 is LED on.  However, some controllers may have the ability for the LED to display more than one color.  The LED Number is not described as fully in the help information, however for targets with a single User LED (i.e. cRIO controllers) the LED number is 0. For units with more than 1 User LED (i.e. cFP controllers) then the numbering is 0 - 3.

LED Name LED Number
A 0
B 1
C 2
D 3
  


Related Links:

Attachments:





Report Date: 05/01/2007
Last Updated: 03/17/2008
Document ID: 4906NAHY

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit