Main Content


Extract generated A2L file from real-time application file



extractASAP2(app_obj) retrieves an A2L file from a real-time application file and save the file in the working folder.


extractASAP2(app_obj,Name,Value) specifies additional options to retrieve an A2L file by using one or more Name, Value pair arguments. For example, you can specify a location for saving the A2L file. You can provide the target IP address to update it in A2L file before saving it.


collapse all

Retrieve the A2L file from real-time application.

% extract a2l file from mymodel application file
app_obj = slrealtime.Application('mymodel.mldatx')

Retrieve the A2L file from real-time application and then save the A2L file with the custom name specified.

% save extracted a2l file with custom name
app_obj = slrealtime.Application('mymodel.mldatx')

Retrieve the A2L file from real-time application and then save the A2L file in the specified location.

% save extracted a2l file in custom location
app_obj = slrealtime.Application('mymodel.mldatx')

Retrieve the A2L file from real-time application and update the target IP Address.

% save extracted a2l file by updating IP Address
app_obj = slrealtime.Application('mymodel.mldatx')

Input Arguments

collapse all

Provides access to methods that manipulate the real-time application files.

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example: 'FileName', 'CustomName', 'Folder', 'C:\workspace'

Save the A2L file retrieved from the real-time application with custom name specified.

Example: 'FileName', 'MyModel'

Full path of the folder in which to save the A2L file.

Example: 'Folder', 'D:\SLRT\Applications'

Extract the A2L file from the real-time application by updating the target IP address.

Example: 'TargetIPAddress', ''

Introduced in R2020b