Contenuto principale

addFileLogSignals

Find signals connected to File Log blocks and add these to real-time instrument object

Since R2026a

Description

addFileLogSignals(instrument_object) finds real-time application signals that are connected to File Log blocks and adds these 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

Use the addFileLogSignals function to find the signals that are connected to File Log blocks in a model and add these signals to an Instrument object.

  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';
    objInst = slrealtime.Instrument(mldatxname);
    addSignal(objInst,'SigGen');
  2. For the model identified by the ModelName property of the Instrument object, add the signals in the model that are connected to File Log blocks to the Instrument object.

    addFileLogSignals(objInst);

Input Arguments

collapse all

To create the instrument object, use the Instrument function.

Example: hInst

Version History

Introduced in R2026a