Set the callback function to be called when the event occurs.
Ret = LoggerSetNotifyEvent ( AppId , pProc , Event , Param )
AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ]
Specify Application ID retrieved by LoggerOpenApplication.
pProc [ VB.NET: IntPtr ] [ C++: long * ] [ C#: IntPtr ]
Specify the address of the callback function.
Event [ VB.NET: UInteger ] [ C++: unsigned long ] [ C#: uint ]
Specify the event factor for which the callback function will be invoked.
These bits have the following meanings, and can be specified in combination.
Value |
Macro |
Description |
0000H |
LOGGER_PARAM_EVENT_NONE |
None |
0001H |
LOGGER_PARAM_EVENT_START |
Start condition satisfied event |
0010H |
LOGGER_PARAM_EVENT_RPTEND |
Repeat end event |
0020H |
LOGGER_PARAM_EVENT_END |
Device operation end event |
0080H |
LOGGER_PARAM_EVENT_DATANUM |
Specified sampling count stored event |
1000H |
LOGGER_PARAM_EVENT_OFERR |
Overflow event |
2000H |
LOGGER_PARAM_EVENT_SCERR |
Sampling clock cycle error event |
Param [ VB.NET: IntPtr ] [ C, C++: void * ] [ C#: void * ]
Specify the address of the parameter to be passed to the callback.
Specify NULL when you do not use the parameter.
Ret [ VB.NET: Integer ] [ C++: long ] [ C#: int ]
Definition |
Return code [Dec] |
Description |
LOGGER_ERR_SUCCESS |
0 |
Normal completed |
LOGGER_ERR_STARTED |
10006 |
Cannot execute because the device is in operation. |
LOGGER_ERR_INVALID_ID |
10010 |
Invalid AppId was specified. |
The others (See also: Error Code List)
Nothing in particular.
Register a callback function to be called when an event occurs.
The registered callback function is called when the event specified by C-LOGGER occurs.
This function cannot be executed if the device is running.
Registers a callback function for the device operation end, specified number of stored events.
VB.NET |
Please refer Note of Using Visual Basic .NET
|
C++ |
long Ret; Ret = LoggerSetNotifyEvent(AppId, CallBackProc, LOGGER_PARAM_EVENT_END | LOGGER_PARAM_EVENT_DATANUM, NULL);
|
C# |
Please refer Note of Using Visual C#
|
void CallBackProc ( Id , Event , wParam , lParam , Param )
Id [ VB.NET: Short ] [ C++: short ] [ C#: short ]
The application ID obtained by LoggerOpenApplication is passed.
Event [ VB.NET: UInteger ] [ C++: unsigned long ] [ C#: uint ]
The event cause (Event) specified by the LoggerSetNotifyEvent function is passed.
wParam [ VB.NET: Integer ] [ C, C++: WPARAM ] [ C#: int ]
(Reserved)
lParam [ VB.NET: Integer ] [ C, C++: LPARAM ] [ C#: int ]
(Reserved)
Param [ VB.NET: IntPtr ] [ C, C++: void * ] [ C#: void * ]
The parameter(param) specified in the LoggerSetNotifyEvent function is passed.
It contains NULL, when you set the param=NULL on calling LoggerSetNotifyEvent function.
None