SetReplayFileNameAndTimeInterval
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE NoteIf the function is used in standalone mode or CANoe4SW Server Edition, the replay file must be added to the User Files.
Function Syntax
Description
Replaces the source file of an existing Replay Block and allows to set a start and stop time of the recorded events. The function call temporarily stops the replay and restarts the Replay Block with the new source file, if replay is active before file change. The function call will not modify the configuration of the Reply Block in the Simulation Setup. The new file will not be stored when saving the configuration. If you change the source file during measurement in the configuration dialog of the Reply Block, the new filename will be stored in the configuration. Note: The behavior depends on the settings of the Replay Block. If the replay should be started via CAPL the function ReplayStart has to be used. If the function is used during an active replay, the loading time of the file leads to a delay.Parameters
-
nameOfReplayBlock
Contents of the Replay name field in the replay configuration dialog. -
fileName
The new source file (as absolute or relative path to the configuration file). -
fileType
The source file type (as string): ASC, BLF
For all other source file types that are available in the selection dialog of the CANoe DE product Replay Block, use BLF as fileType parameter. -
startTime
Start time of the recorded events in the log file in nano seconds. Use ConvertTimestampToNS to convert a timestamp given in days, hours, minutes or seconds. -
endTime
End time of the recorded events in the log file in nano seconds. Use ConvertTimestampToNS to convert a timestamp given in days, hours, minutes or seconds.