xPC Target | ![]() ![]() |
Get all or part of the output logs from the target object
Syntax
log = getlog(target_object, 'log_name', start_time, number_points, interleave)
Arguments
Description
Method of a target object. Use this function instead of the function get
when you want only part of the data.
Examples
To get the first 1000 points in a log.
Outlog = getlog(tg, 'TETLog', 0, 1000)
To get every other point in the output log and plot values.
Output_log = getlog(tg, TETLog, 0, ,2) Time_log = getlog(tg, TimeLog, 0, ,2) plot(time_log, output_log)
See Also
The xPC Target target object methods get
. The procedures Entering the Simulation Parameters, Entering the Simulation Parameters.
![]() | get | getparamid | ![]() |