Target Computer file logger
Target.FileLog object represents the file logger that runs on
a target computer and provides access to
methods and properties related to the file logger.
The object provides access to methods and properties that:
Enable and disable the file logger.
Import file log data.
Check for available file log data.
Discard unwanted file log data.
Function names are case-sensitive. Type the entire name. Property names are not case-sensitive. You do not need to type the entire name if the characters you type are unique for the property.
Target.FileLog object is created when you create a
by using the
slrealtime command. After you create and
connect to the
you can access the
Target.FileLog object. This example creates and connects
tg, and then starts the file logger on the target computer.
tg = slrealtime('TargetPC1'); connect(tg); enable(tg.FileLog);
Importing— File log import status
0(not importing) (default) |
Importing property indicates whether the file logger is
importing a file log. When
FileLogger is enabled, the file logger
imports file log data at the end of simulation runs. You can disable the import by
Disable automatic import of file logs option for the
real-time application. For more information, see the
LoggingService— File logging service status
LoggingService property indicates the file logging service
DataAvailable— File log data available status
0(no data available) (default) |
DataAvailable property indicates whether file log data is
available for import.
disable function disables file
Target object and connect to the target computer. Creating
a Target object creates a child
Target.FileLog object. Connecting to
the target computer provides access to the
Disable file logging.
tg = slrealtime('TargetPC1'); connect(tg); disable(tg.FileLog);