Trace Configuration for multiple files

Comprehensive CAN monitor for Windows® and its add-ins: Plotter, CANdb Import, Instruments Panel, and J1939
Post Reply
Markus
Posts: 9
Joined: Thu 25. Sep 2014, 16:26

Trace Configuration for multiple files

Post by Markus » Tue 16. Dec 2014, 07:32

Hello,

is it possible with PCAN Explorer 5 to generate multiple trace files in a row when the trace gets larger than a specified size?
In the PCAN-Parameter Documentation I've seen the "PCAN_TRACE_CONFIGURE" parameter with the value "TRACE_FILE_SEGMENTED" can I make use of this feature from within PCAN-Explorer or do I have to write my own application to store a segmented Trace file?

Thanks,
Markus

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: Trace Configuration for multiple files

Post by M.Maidhof » Tue 16. Dec 2014, 10:38

Hello,

I think you mixed up PCANBasic API parameters with PCAN-Explorer 5 commands. To build segmented PCAN-Trace files with PCAN-Explorer 5 you can use a VBmacro. You will find a sample macro called LossLessTrace in the PCAN-Explorer 5 macro list, which will do a segmented trace. You can also modify it to your needs.

regards

Michael Maidhof

Markus
Posts: 9
Joined: Thu 25. Sep 2014, 16:26

Re: Trace Configuration for multiple files

Post by Markus » Tue 16. Dec 2014, 10:48

Hi Michael,

thanks for the quick reply. I thought I could configure a tracer directly with API parameters but the macro also fits my needs :)


Regards,
Markus

Markus
Posts: 9
Joined: Thu 25. Sep 2014, 16:26

Re: Trace Configuration for multiple files

Post by Markus » Tue 14. Jul 2015, 08:41

Hello,

an additional question on the LossLessTrace: Is it possible to get continuous timestamps for the segmented traces?

Markus

K.Wolf
Software Development
Software Development
Posts: 141
Joined: Wed 22. Sep 2010, 15:37

Re: Trace Configuration for multiple files

Post by K.Wolf » Wed 15. Jul 2015, 08:52

Hello,

no, that is not possible. The timestamps are offsets related to the start of an individual trace file.

Markus
Posts: 9
Joined: Thu 25. Sep 2014, 16:26

Re: Trace Configuration for multiple files

Post by Markus » Wed 15. Jul 2015, 09:00

When parsing the trace file with a custom script later on, which starttime in the trace file's header should I take as reference?
While I do understand the human readable version in line 5, I don't get the meaning of $STARTTIME. I suppose it's some kine of "Seconds since..." but it does not seem to be consistent with the time from line 5 when comparing two tracefiles.

Code: Select all

;$FILEVERSION=1.3
;$STARTTIME=42199.6165978297
;
;   d:\temp\Trace3.trc
;   Start time: 14.07.2015 14:47:54.052.4
;   Generated by PCAN-Explorer v5.3.4

M.Maidhof
Support
Support
Posts: 1751
Joined: Wed 22. Sep 2010, 14:00

Re: Trace Configuration for multiple files

Post by M.Maidhof » Wed 15. Jul 2015, 10:37

Hi,

here the details from the PEAK Trace format specification about the STARTTIME, which is the Windows Time format:

$STARTTIME keyword to store the absolute start time of the trace file:

Format: Floating point, Point as decimal separator.
Value: Integral part = Number of days that have passed since 12/30/1899.
Fractional Part = Fraction of a 24 hour day that has elapsed, resolution is 1 Millisecond.

With each trace file, you will have a new STARTTIME value, the timestamps of the CAN messages will than be the offset from that STARTTIME value.

regards

Michael

Post Reply