Contenuto principale

copy

Copy the array of handle objects from one Instrument object to another

Since R2026a

Description

instrument_object = copy(instrument_object) copies the array of handle objects from the input Instrument object to the output Instrument object.

example

Examples

collapse all

Use the copy function to copy one Instrument object to another 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. Copy the Instrument object to another Instrument object.

    objInstCopied = copy(objInst);

Input Arguments

collapse all

To create the instrument object, use the Instrument function.

Example: hInst

Output Arguments

collapse all

To create the instrument object, use the Instrument function.

Example: hInst

Version History

Introduced in R2026a