Application
Description
An application object represents application files on the MATLAB® development computer. You can create application objects for real-time applications that you build from models.
An application object provides access to methods and properties that let you work with the application blocks and signals.
Creation
creates an object that you can use to manipulate real-time
application files on the
development computer. You can create the object only after the real-time
application has been built.app_object
= slrealtime.Application(application_name
)
The slrealtime.Application
function accepts these arguments:
application_name
— Name of real-time application (character vector or string scalar). For example,'slrt_ex_osc_inport'
.This argument is the file name without the
.mldatx
file extension of the MLDATX file that the build produces on the development computer.app_object
— Represent real-time application files on the development computer.This argument provides access to methods that manipulate the real-time application files.
Create an application object for real-time application
slrt_ex_osc_inport
.
app_object = slrealtime.Application('slrt_ex_osc_inport');
Example: Extract ASAP2 File
Example: Update Root-Level Inport Data
Example: Get and Set Application Options
Properties
Object Functions
addParamSet | Add a parameter set to a real-time application |
extractASAP2 | Extract generated A2L file from real-time application file |
getAllFileLogBlocks | Returns block paths corresponding to File Log blocks in application |
getFileLogDecimation | Returns decimation value of File Log block based on block path |
getInformation | Get real-time application information |
getParameters | Get real-time application parameters |
getRootLevelInports | Returns root level inports in application |
getSignals | Get real-time application signals |
setFileLogDecimation | Sets decimation value on File Log blocks based on block path and input decimation value |
updateASAP2 | Pack the ASAP2 file into application |
updateRootLevelInportData | Replace external input data in real-time application with input data |
updateAutoSaveParameterSetOnStop | Update the auto save parameter set on stop for an application |
updateStartupParameterSet | Update the startup parameter set for an application |