Main Content

generateScript

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

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_tank.mldatx';
hInst = slrealtime.Instrument(mldatxfile);
generateScript(hInst);

Input Arguments

collapse all

To create the instrument object, use the Instrument function.

Example: hInst

Introduced in R2020b