User`s guide
CAN Log
14-9
The model appends the log file name with the current date and time in the YYYY-
MMM-DD_hhmmss format. You can also open the block mask and specify a unique
name to differentiate between your files for repeated logging.
Variable Name
Type the variable saved in the MAT-file that holds the CAN message information.
Maximum number of messages to log
Specify the maximum number of messages this block can log from the selected device
or port. The specified value must be a positive integer. If you do not specify a value
the block uses the default value of 10,000 messages. The log file saves the most
recent messages up to the specified maximum number.
Log messages from
Select the source of the messages logged by the block. Possible values are CAN Bus or
Input port. To log messages from the network, you must specify a device.
Device
Select the device on the CAN network that you want to log messages from. This filed
is unavailable if you select Input port for Log messages from option.
Sample time
Specify the sampling time of the block during simulation, which is the simulation
time as described by the Simulink documentation. This value defines the frequency
at which the CAN Log block runs during simulation. If the block is inside a triggered
subsystem or to inherit sample time, you can specify –1 as your sample time. You
can also specify a MATLAB variable for sample time. The default value is 0.01 (in
seconds).
See Also
CAN Replay