op_ev_current_execid()
Abstract
Obtains the execution ID of the currently executing event.
Syntax
op_ev_current_execid ()
| Argument | Type | Description |
|---|---|---|
| no arguments |
Return Type
OpT_uInt64
Execution ID of the currently executing event, or OPC_EV_EXECID_INVALID if there is no valid event.
Example
/* Obtain the currently executing event */
this_event = op_ev_current ();
Details
None.
Purpose
Provides a mechanism to obtain the execution ID of the current event. This can be useful for debugging if you want to stop at a particular event during a simulation run. In this case, you can use this KP to print the execution ID of the event during one run, then use the ODB command evstop <exec ID> in a later run.
Errors
- No errors are trapped.
Reference
- None.