How to Read FPGA LED Status on the Host Side from NI-9144/9145?

Updated Feb 6, 2024

Environment

Hardware

  • NI-9145
  • NI-9144

Software

  • LabVIEW

I have the FPGA LED on the EtherCAT chassis I would like to read the status when the FPGA target is running.

  1. Follow Setting Up EtherCAT on NI Programmable Controllers guide to configure the LabVIEW project.
  2. To access FPGA LED you need to add FPGA target under EtherCAT chassis.
kb2_1.PNG
       3. To transfer data between FPGA(9144/9144) and HOST/RT you can only use User Defined Variables by right click on Device then New 
kb2_2.PNG
       4. Create a Boolean Shared Variable
kb2_3.PNG
       5. Create a logic when you want your FPGA LED to be turned on and assign it to a variable you've created on the FPGA target.
kb2_4.PNG
        6. Compile the bitfile and download the FPGA vi to the EtherCAT chassis.
        7. Create an .vi on the host/RT side in which you will read the value of user shared variable
kb2_5.PNG