Ets_An_Trace_Append()
Note: Requires OPNET Development Kit
Abstract
Adds a new data point to a trace.
Syntax
Ets_An_Trace_Append (an_trace_handle, time_val, data_val)
| Argument | Type | Description |
|---|---|---|
an_trace_handle |
EtsT_An_Trace_Handle |
the trace to which the new data point will be added |
time_val |
double |
the x component of the new data point |
data_val |
double |
the y component of the new data point |
Return Type
EtsT_Compcode
EtsC_Compcode_Success if the point was successfully added.
Header
ets_api_an_panel.h
Details
This function adds the given data value at the given time value to the specified trace, and if the analysis panel containing the trace is visible, refreshes it. The function returns EtsC_Compcode_Success if the point was successfully added, or EtsC_Compcode_Failure if some error occurred.
The time_val and data_val parameters can be any double; that is, time_val does not have to be after all the previous time values.