メインコンテンツ

removeForFileLog

Remove an instrument from a target object that was for file logging

Since R2026a

Description

removeForFileLog(target_object.Instruments,instrument_object) removes an instrument from a Target object that was for file logging.

example

Examples

collapse all

You can remove an instrument that has been added to Target objects for file logging.

  1. Create target object and connect to target computer. Open model and configure model for target computer. Build model. Create instrument object and add signal from real-time application.

    objTarg = slrealtime;
    connect(objTarg);
    model = 'slrt_ex_osc';
    openExample(model);
    modelSTF = getSTFName(objTarg);
    set_param(model,"SystemTargetFile",modelSTF);
    slbuild(model);
    mldatxname = 'slrt_ex_osc.mldatx';
    objTargInst = slrealtime.Instrument(mldatxname);
    objTargInst.Name = 'TargetInstrument';
    addSignal(objTargInst,'SigGen');
  2. Add an instrument to the Target object for file logging.

    addForFileLog(objTarg.Instruments,objTargInst);
  3. Remove an instrument in the Target object for file logging.

    removeForFileLog(objTarg.Instruments,objTargInst);

Input Arguments

collapse all

To create the instrument object, use the Instrument function.

Example: hInst

Object that represents target computer, specified as a Target object. The object provides access to methods that manipulate the target computer properties.

Example: tg

Version History

Introduced in R2026a