Quickstart Guide
Introduction RIO Academic RIO Application examples Your first RT app Your first FPGA app
Basic procedures System admin File system I/O monitor System controller architecture Timed loops Inter-process communication RT/Host communication RT/FPGA communication FPGA personalities Interrupts Datalogger (file I/O)
Design flow Simulation Inter-process communication RT/host communication Derived clock domain IP blocks FPGA personality
Get connected Email Web services UDP TCP IP addresses
Site Map
Guides Code examples Procedures Tags LabVIEW block diagram elements Targets Communications All pages
Glossary How to use About
RIO Developer Essentials Guide for Academia
RT code example

Externally-triggered action using interrupt request (IRQ)

Run a callback VI each time that a digital input transition or an analog input voltage threshold crossing generates an interrupt request (IRQ).

LabVIEW RT block diagram snippet: Create a digital input transition IRQ (interrupt request), associate with a callback VI

Use cases


Keep in mind

LabVIEW block diagram elements

Locate these elements with "Quick Drop" (press Ctrl+Space and start typing the name); click on an icon to see more sample code that uses that element:

Register Analog Input Interrupt
Register Digital Input Interrupt
Callback VI Reference
Unregister Interrupt
Feedback Node
Flat Sequence Structure

Example code

Expected results

https://youtu.be/BwmwbEkOt7g (3:29)

Developer walk-through

https://youtu.be/buLPvs41qVs (4:41)


For more information

  1. Using Callback VIs to Handle Interrupts (myRIO Toolkit) (http://zone.ni.com/reference/en-XX/help/373925C-01/myriohelp/myrio_use_callback_vi)
    Guidelines for the design of VIs that will serve as callback VIs