This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Modeling Services and Access from Application Software

This examples shows a typical software modeling pattern involving services and access to those services in an application.

Overview

Driver model represents services provided, read() and write(), related to motion detection.

The chart in the Software model makes calls to the services using the notation slexServicesDriverMdlRef.write(). The notation compactly identifies the function to be called, and the Driver model from where the function's argument attributes are inherited, making this Software model independently compilable.

Simulating the model, and inspecting Sequence Viewer block shows how the chart makes motion detection decisions based on the services.

Closing the Models