Analog InterruptsAsynchronously invokes the appropriate function-call subsystem when an analog interrupt of the Q8 data acquisition system occurs. Libraryqctools 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.
Block OutputsADC03EOCThe 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. ADC47EOCThe 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. ADC03RDYThe 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. ADC47RDYThe 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 |
![]() |
![]() |
||