Home
External Interrupt Fuse Interrupt

Analog Interrupts

Asynchronously invokes the appropriate function-call subsystem when an analog interrupt of the Q8 data acquisition system occurs.

Library

qctools

Description




The Analog Interrupts block for the Q8 series of I/O cards provides a mechanism for handling asynchronous A/D interrupts. Attaching a function-call subsystem to an output causes the function-call subsystem to be executed as soon as the associated interrupt occurs. For example, attaching a function-call subsystem to the ADC03RDY output will cause that subsystem to be executed immediately when all selected channels in the range 0-3 have been converted. The code executes asychronously from the rest of the model. The timing of its execution is not governed by the sampling period of the system. To prevent warnings from Simulink, put a Terminator block on unused outputs.

Note that the Asynchronous Interrupt blocks may only be used in Windows if the Q8 Windows driver has been converted to an RTX driver using Convert To RTX in the RTX Properties control panel. One of the Time Base blocks is also required in the model for these blocks to be used.

Block Outputs

ADC03EOC

The function-call subsystem attached to this output will execute when the end-of-conversion signal of ADC03 goes high. ADC03 handles analog input channels 0-3. The interrupt is edge-triggered. An end-of-conversion pulse occurs once for each channel converted.

ADC47EOC

The function-call subsystem attached to this output will execute when the end-of-conversion signal of ADC47 goes high. ADC47 handles analog input channels 4-7. The interrupt is edge-triggered. An end-of-conversion pulse occurs once for each channel converted.

ADC03RDY

The function-call subsystem attached to this output will execute when the ready signal of ADC03 goes high. ADC03 handles analog input channels 0-3. The interrupt is edge-triggered. The ready signal goes high only after all the selected channels in this range have been converted.

ADC47RDY

The function-call subsystem attached to this output will execute when the ready signal of ADC47 goes high. ADC03 handles analog input channels 4-7. The interrupt is edge-triggered. The ready signal goes high only after all the selected channels in this range have been converted.

Parameters and Dialog Box




Board Number

The board number of the I/O card. If there is only one Q8 board in your system, then the board number should be zero. The second Q8 board in your system is board number 1, etc.

       
External Interrupt Fuse Interrupt