Main Content

addInstrumentedSignals

Find instrumented signals and add these to real-time instrument object

Since R2020b

Description

addInstrumentedSignals(instrument_object) finds real-time application signals that are marked for streaming to the Simulation Data Inspector and adds these instrumented signals to the real-time instrument object. If the instrument_object does not have an assigned real-time application MLDATX file, the addSignal command issues an error message.

example

Examples

collapse all

Select real-time application file. Create instrument object. Add instrumented signals to the instrument object.

mldatxfile = 'slrt_ex_pendulum_100Hz.mldatx';
hInst = slrealtime.Instrument(mldatxfile);
addInstrumentedSignals(hInst);

Input Arguments

collapse all

To create the instrument object, use the Instrument function.

Example: hInst

Version History

Introduced in R2020b