xPC Target    

Async IRQ Source Block

The main block that notifies Simulink and xPC Target 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 proper interrupt occurs.

Block Parameters
Description
IRQ line number

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 PC to find what IRQ the PCI bus assigned to your hardware. Use the function getxpcpci.

Valid IRQ numbers are between 5 and 15.

Allow preemption of function call subsystem

Normally, while the ISR is executing, another interrupt will not cause re-execution of the ISR (That is the ISR will not preempt itself). If this check box is checked, the ISR will interrupt itself.

I/O board generating the interrupt
For many I/O boards, it is necessary to set up the board properly to generate the interrupt. It may also be necessary to set up board specific features at the beginning and/or end of an ISR. you should select the correct board that you intend to use from the drop-down list.

Currently xPC Target supports the following boards from:
  • Measurement Computing Corporation (formerly, Computer Boards) -- Counter boards CIO-CTR05 (ISA bus) and PCI-CTR05(PCI bus)
  • Softing AG -- CAN boards CAN-AC2-PCI (PCI bus) and CAN-AC2-104 (PC/104 bus)

Check the xPC Target Product News Page for library updates at http://www.mathworks.com/support/product/XP/productnews/productnews.shtml.

PCI slot (-1: autodetect)

Enter a number between -1 and n.

If only one board of this type is physically present in the target PC, enter -1.

If two or more boards of this type are physically present in the target PC, enter the PCI slot number of the board associated with this driver block. If you do not specify the board you want to use for this interrupt, xPC Target uses the first card it finds of this type.


  Adding an Asynchronous Event Async Rate Transition Block