I have a CANoe setup configured to automatically save log files to a folder, using a dynamic naming convention (that is: output file name has date and time, and they are not a constant).
I'd like to perform some actions on this file after it is saved, using the on Stop()
procedure of a CAPL script. To be sure of targetting the correct log file, I'd like to use its name, which is dynamically created (this is a constraint). How can I do this?
If triggering a post-processing script is an option, using COM interface is the best bet. Follow these steps:
eg.
App.Configuration.OnlineSetup.LoggingCollection.Item(1).FullName
Note that the index values for Item
object starts from 1 (not from 0).