Important
For messages to be written in the trace file, the receive queue must be read actively, even if the application is only sending. This is because written messages need to be acknowledged in order to be teated as "successfully sent".
These parameters are intended to minimize the developing time and cost of CAN applications using the PCAN-Basic API, by allowing the recording and storing of all CAN communication in an ASCII formatted file that can be loaded by any text editor.
Since the trace formats are officially used by PEAK-System applications, there are already several tools that can load and process those trace files, further minimizing the investment in own software programming. For example, the information recorded can be inspected using the software PCAN-Explorer and can even be played back for simulation purposes.
Consider that the trace functionality is available for each PCAN Channel. This implies three important points:
The PCAN Channel must be first initialized before a trace session can be started.
A trace session can be started for each initialized Channel within an application, simultaneously.
The data traced corresponds to the data successfully transmitted through a PCAN Channel, using the methods Read and Write.
Parameter | Description |
|---|---|
Directory path for PCAN trace files. | |
PCAN tracing activation status. | |
Configuration of the trace file storing modes (see ParameterValueTrace). | |
Configuration of the maximum file size of a PCAN trace. |