xPC Target    
getlog

Get all or part of the output logs from the target object

Syntax

MATLAB command line

Arguments

log
User defined MATLAB variable.
log_name
Values are TimeLog, StateLog, OutputLog, or TETLog. This argument is required.
first_point
First data point. The logs begin with 1. This argument is optional. Default is 1
number_points
Number of points after the start time. This argument is optional. Default is all points in log.
interleave
1 returns all sample points. n returns every nth sample point. This argument is optional, Default is 1.

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.

To get every other point in the output log and plot values.

See Also

The xPC Target target object methods get. The procedures Entering the Simulation Parameters, Entering the Simulation Parameters.


 get getparamid