Main Content

generateScript

Generate script that creates scalar and axes controls from signals, scalars, and lines in real-time instrument object

Since R2020b

Description

example

generateScript(instrument_object) generates an M-script that creates scalar and axes controls from the signals, scalars, and lines in a real-time instrument object.

Examples

collapse all

Select real-time application file. Create instrument object. Generate script that creates scalar and axes controls from instrument object.

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

Input Arguments

collapse all

To create the instrument object, use the Instrument function.

Example: hInst

Version History

Introduced in R2020b