SimulinkRealTime.prototype.Instrumentation

Create a real-time instrumentation object

Description

The SimulinkRealTime.Instrumentation object streams signal data from a real-time simulation running on a target computer to a development computer. The instrumentation object uses the streaming API from SimulinkRealTime.SignalList.

Creation

instrument_object = SimulinkRealTime.prototype.Instrumentation('mldatxFile') creates an empty instrumentation object.

Example: Create Instrumentation Object

Properties

expand all

This read-only property is updated as the instrumentation object is populated.

This read-only property is updated as the instrumentation object is populated.

Object Functions

addSignalAdds signal for streaming to make it available in callback
clearDataClears data from children of real-time instrumentation object
connectCallbackAdds callback that responds to new data
connectLineConnects signal for streaming to axis
connectScalarAdds signal for streaming to scalar display
deleteDeletes real-time instrumentation object
startStarts streaming data from real-time application
stopStops streaming data from real-time application

Examples

Create Instrumentation Object

Create instrumentation object hInst.

mldatxfile = 'my_xpctank.mldatx';
hInst  = SimulinkRealTime.prototype.Instrumentation(mldatxfile);
% for technical preview in R2019b, function name includes '.prototype'

Introduced in R2019b