Reads the state of the interrupt sources being monitored. Blocks until at least one interrupt has occurred.
Namespace:
Quanser.Hardware
Assembly:
Quanser.Hardware.Hil (in Quanser.Hardware.Hil.dll)
Syntax
Visual Basic (Declaration) |
---|
Function ReadInterrupt ( _
interruptBuffer As SByte() _
) As Integer |
C# |
---|
int ReadInterrupt(
sbyte[] interruptBuffer
) |
Visual C++ |
---|
int ReadInterrupt(
array<signed char>^ interruptBuffer
) |
JavaScript |
---|
function readInterrupt(interruptBuffer); |
Parameters
- interruptBuffer
- Type: array<
System..::.SByte
>[]()[]
An array for receiving the states of the interrupt sources. The
array must contain numChannels
elements, where numChannels
is the number of channels specified when the monitor was created. The array is organized
as a linear array, with each element corresponding to an interrupt source. For
example, if interrupt sources 0, 1 and 3 are being monitored, than the buffer will contain
a 0 or 1 in element 0 depending on whether interrupt source 0 occurred. Likewise, element 1
will correspond to interrupt source 1, and element 2 to interrupt source 3.
Return Value
The return value is the number of interrupts being monitored that actually occurred. This value
may be less than the number of interrupt sources if only some of the interrupts have occurred.
The return value is only zero if the monitor was stopped.
Remarks
Examples
Exceptions
See Also