Interrupt Express VI
- Updated2023-02-21
- 4 minute(s) read
Requires: myRIO Toolkit, roboRIO Toolkit, or NI ELVIS RIO Control Toolkit
Registers analog and digital input interrupts and creates timer interrupts.
Dialog Box Options |
Block Diagram Inputs |
Block Diagram Outputs |
Dialog Box Options
Parameter | Description | ||
---|---|---|---|
I/O mode | Specifies the I/O mode this Express VI uses. The default is Analog input interrupt. Other options are Digital input interrupt and Timer interrupt.
| ||
Node name | Specifies the name of this Express VI. You can also double-click the name of this Express VI on the expandable node to edit the name. | ||
IRQ number | Specifies the identifier of the interrupt to register. The default is 0. Valid values are within the range [0, 7]. This option is available only when you specify Analog input interrupt or Digital input interrupt for I/O mode.
| ||
Channel | Specifies the channel to register and create the interrupt. | ||
Type | Specifies when to register or create an interrupt based on the signal. This option is available only when you specify Analog input interrupt or Digital input interrupt for I/O mode. When you specify Analog input interrupt for I/O mode, you can specify the following values for Type:
When you specify Digital input interrupt for I/O mode, you can specify the following values for Type:
| ||
Threshold | Specifies the value in volts that the signal must cross for this Express VI to register an interrupt. The default is 2.5. This option is available only when you specify Analog input interrupt for I/O mode. | ||
Edge count | Specifies the number of edges of the signal that must occur for this Express VI to register an interrupt. The default is 1. This option is available only when you specify Digital input interrupt for I/O mode. | ||
Timer ID | Specifies the identifier of the interrupt to create. The default is 0. Valid values are within the range [0, 7]. This option is available only when you specify Timer interrupt for I/O mode.
| ||
Interval | Specifies the span of time between interrupts in microseconds. The default is 1,000,000. This option is available only when you specify Timer interrupt for I/O mode.
| ||
Callback VI | Specifies the path to the callback VI. When you specify Callback VI, you can specify a path either to an existing or new callback VI. If you specify a path to a new callback VI, LabVIEW creates a callback VI with the specified name in the specified directory.
| ||
Create | Displays a file dialog box where you can create a new callback VI from template. | ||
Browse | Displays a file dialog box where you can select an existing callback VI. | ||
Preview | Displays a preview of when this Express VI registers or creates interrupts in different I/O modes. | ||
View Code | Displays the underlying code of this Express VI. | ||
Connection Diagram | Shows the I/O connector pinouts. The highlighted pinouts represent the channels that you configure. |
Block Diagram Inputs
Parameter | Description |
---|---|
error in (no error) | Describes error conditions that occur before this node runs. |
Block Diagram Outputs
Parameter | Description |
---|---|
error out | Contains error information. This output provides standard error out functionality. |
Interrupt Details
Related Information
Understanding Hysteresis (myRIO Toolkit)
Understanding Hysteresis (roboRIO Toolkit)
Understanding Hysteresis (ELVIS RIO Control Toolkit)
Using Callback VIs (myRIO Toolkit)
Using Callback VIs (roboRIO Toolkit)
Using Callback VIs (ELVIS RIO Control Toolkit)
Examples
Refer to the following VIs for examples of using the Interrupt Express VI:
- labview\examples\myRIO\Interrupt Handling\Interrupt Handling.lvproj
- labview\examples\roboRIO\Interrupt Handling\Interrupt Handling.lvproj
- labview\examples\EL-RIO-CM\Interrupt Handling\Interrupt Handling.lvproj