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.

Signal Monitoring and Tracing with MATLAB

Signal visualization with and without real-time information

If you require only the signal value, not the time at which it reached that value, monitor the signal with MATLAB®. See Signal Monitoring Basics.

If you require the signal value and the time at which it reached that value, add a real-time scope with MATLAB. SeeSignal Tracing Basics.

Objects

SimulinkRealTime.targetRepresent real-time application and target computer status
SimulinkRealTime.hostScopeDisplay time-domain data on development computer screen
SimulinkRealTime.targetScopeDisplay time-domain data on target computer

Properties

Target Settings PropertiesSettings related to target computer

Functions

addscopeCreate a scope of specified type
getscopeReturn scope identified by scope number
remscopeRemove scope from target computer
addsignal (hostScope,signal)Add signals to host scope represented by scope object
remsignal (hostScope,signal)Remove signals from host scope represented by scope object
start (hostScope)Start execution of host scope on target computer
stop (hostScope)Stop execution of host scope on target computer
trigger (hostScope)Software-trigger start of data acquisition for host scope
addsignal (targetScope,signal)Add signals to target scope represented by scope object
remsignal (targetScope,signal)Remove signals from target scope represented by scope object
start (targetScope)Start execution of target scope on target computer
stop (targetScope)Stop execution of target scope on target computer
trigger (targetScope)Software-trigger start of data acquisition for target scope

Topics

Background

Signal Monitoring Basics

Acquire non-time-stamped signal data while running a real-time application.

Signal Tracing Basics

Acquire and visualize signals while running a real-time application.

Target Scope Usage

Learn about usage issues that are unique to target scopes.

Host Scope Usage

Learn about usage issues that are unique to host scopes.

Scope Trigger Configuration

Learn about configuring scopes so that they wait until triggered to acquire data.

Pretriggering and Posttriggering of Scopes

Learn about configuring scopes so that they acquire data before or after the trigger event.

Trigger One Scope with Another Scope

Learn about configuring scopes so that they acquire data in response to the triggering of another scope.

Signal Monitoring

Monitor Signals with MATLAB Language

Acquire non-time-stamped signal data and display it in the Command Window.

Monitor Stateflow States with MATLAB Language

Monitor non-time-stamped Stateflow® states in the Command Window.

Signal Tracing

Configure Target Scopes with MATLAB Language

Configure the scope display format on the target computer monitor.

Minimize Data Gaps with Two Scopes

Acquire data that two scopes acquire consecutively, with minimal overlap or gaps.

MATLAB Interface

Real-Time Application Objects

Use the MATLAB Command Window to change properties and control the target computer and your real-time application.

Real-Time Scope Objects

Use the Command Window to change properties and control signal logging and signal tracing.

Limitations

Troubleshoot Signals Not Accessible by Name

Investigate issues for some signal types prevent monitoring, tracing, or logging.

Internationalization Issues

Learn about Simulink® Real-Time™ support for internationalization.

Troubleshooting

Troubleshooting in Simulink Real-Time

Troubleshoot problems that you encounter while using the Simulink Real-Time product.

Featured Examples