MATLAB XPC TARGET 4 - IO Guía de usuario Pagina 143

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 182
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 142
getlog
6-23
6getlog
Purpose Get all or part of the output logs from the target object
Syntax MATLAB command line
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” on page 3-8, “Entering the Simulation Parameters” on
page 3-8.
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.
Vista de pagina 142
1 2 ... 138 139 140 141 142 143 144 145 146 147 148 ... 181 182

Comentarios a estos manuales

Sin comentarios