Page 1 of 1

How to create Trace files using PCAN UDS api

Posted: Thu 26. Nov 2020, 13:49
by Thanveer
I am using PCAN UDS API for creating a windows based tool in one of my projects and I would like to generate a trace file, like the one is generated in the PCAN tool, for our tool. Is there some API which I can use inorder to create this trace file?

Re: How to create Trace files using PCAN UDS api

Posted: Thu 26. Nov 2020, 14:24
by K.Wagner
Hello,

since UDS is based on PCAN-Basic, you can use this API to start a tracing operation. You will then get a PCAN-Trace file like those generated by PCAN-View. For this you need to call the PCAN-Basic function CAN_SetValue with the UDS handle you have initialized, to set the parameter PCAN_TRACE_STATUS to On.

More information can be found in the "PCAN Parameters documentation" of PCAN-Basic.