Skip to Main Content Skip to Search
Product Documentation

Async IRQ Source - Async IRQ Source block

Library

xPC Target Library for Asynchronous Event

Description

The main block that notifies the Simulink and xPC Target software that a particular Function-Call Subsystem should be treated as an ISR is the IRQ Source block. This block is actually a virtual block and does not exist at model execution time. However, the model initialization code sets things up with the CPU to execute the ISR when the specified interrupt occurs.

Block Parameters

IRQ line number

Select Auto (PCI only) to enable the xPC Target software to automatically determine the IRQ that the BIOS assigned to the board and use it.

Alternatively, select the IRQ line number you are using for this block. This depends on the characteristics of your hardware. You may need to query the PCI bus on the target computer to find what IRQ the PCI bus assigned to your hardware. Use the function getxpcpci.

Valid IRQ numbers are between 3 and 15.

I/O board generating the interrupt

For many I/O boards, you need to set up the board to generate the interrupt. You might also need to set up board specific features at the beginning and/or end of an ISR. Select the board you intend to use from the drop-down list.

PCI slot (-1: autosearch) or ISA base address
  • If PCI:

    • If only one board of this type is in the target computer, enter

      -1 

      to automatically locate the board.

    • If two or more boards of this type are in the target computer, enter the bus number and the PCI slot number of the board associated with this driver block. Use the format [BusNumber, SlotNumber]. To determine the bus number and the PCI slot number, type

      getxpcpci
  • If ISA, enter the base address.

See Also

Asynchronous Event Support

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS