Main Content

addInstrumentedSignals

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

Description

example

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.

Examples

collapse all

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

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

Input Arguments

collapse all

To create the instrument object, use the Instrument function.

Example: hInst

Introduced in R2020b