Inputscancallback delegate, Daqdevice.disablecallback(), Daqdevice.geterrormessage() – Measurement Computing DAQFlex User Guide User Manual
Page 29: Disablecallback(), Geterrormessage()

DAQFlex Software User's Guide
DAQFlex Software Reference
29
Return value
The value of callbackType.
Remarks
This method is used in conjunction with input scan operations.
EnableCallback may be called once for each callback type. If it is called more than once for the
sample callback type, a DaqException is thrown.
InputScanCallback Delegate
A delegate is a data structure that refers either to a static method, or to a class instance and an
instance method of that class. You call the delegate by passing either its address or a pointer to the
delegate to the callback parameter of the
C#:
public delegate void
InputScanCallbackDelegate(MeasurementComputing.DAQFlex.ErrorCodes
errorCode, MeasurementComputing.DAQFlex.CallbackType callbackType,
object callbackData)
VB:
Public Delegate Sub InputScanCallbackDelegate(ByVal errorCode As
MeasurementComputing.DAQFlex.ErrorCodes, ByVal callbackType As
MeasurementComputing.DAQFlex.CallbackType, ByVal callbackData As
Object)
DaqDevice.DisableCallback()
Disables the invocation of the user-defined callback method associated with the callback type.
C#:
void DisableCallback(CallbackType callbackType)
VB:
Sub DisableCallback(ByVal callbackType As CallbackType)
Parameter
callbackType
The callback type to disable.
DaqDevice.GetErrorMessage()
Gets the error message associated with the error code that is passed to the user-defined callback.
C#:
string GetErrorMessage(ErrorCodes errorCode)
VB:
Function GetErrorMessage(ByVal errorCode As ErrorCodes)
Parameter
errorCode
The error code that was passed to the user-defined callback method.
Return value
The error message associated with the error code passed to the user-defined callback method.