Installs an interrupt handler that will store the current count whenever an interrupt occurs. This method can only be used with 9513 counters. This method will continue to operate in the background until either intCount is satisfied or StopBackground() with CtrFunction is called.
Member of the MccBoard class.
VB .NET
Public Function CStoreOnInt(ByVal intCount As Integer, cntrControl As MccDaq.CounterControl, ByVal memHandle As IntPtr) As MccDaq.ErrorInfo
C# .NET
public MccDaq.ErrorInfo CStoreOnInt(int intCount, MccDaq.CounterControl cntrControl, IntPtr memHandle)
The following methods are deprecated, and should only be used for legacy applications. The methods above are preferred, and must be used for 64-bit application development.
VB .NET
Public Function CStoreOnInt(ByVal intCount As Integer, ByRef cntrControl As MccDaq.CounterControl, ByVal memHandle As Integer) As MccDaq.ErrorInfo
C# .NET
public MccDaq.ErrorInfo CStoreOnInt(int intCount, ref MccDaq.CounterControl cntrControl, int memHandle)
intCount
The counters will be read every time an interrupt occurs, until IntCount number of interrupts have occurred. If IntCount = 0, the method will run until StopBackground() is called. (Refer below to memHandle).
cntrControl
The array should have an element for each counter on the board. (5 elements for a CTR05 device, 10 elements for a CTR10 device, and so on). Each element corresponds to a counter channel. Each element should be set to either MccDaq.CounterControl.Disabled or MccDaq.CounterControl.Enabled
All channels that are set to MccDaq.CounterControl.Enabled will be read when an interrupt occurs.
memHandle
Handle for Windows buffer. If intCount is non-zero, the buffer referenced by memHandle must be of sufficient size to hold (intCount × Number of Counters) points.
If the Library Revision is set to 4.0 or greater, the following code changes are required: