Main Content

sldrtconfigset

Attach and activate default Simulink Desktop Real-Time configuration set

Description

example

sldrtconfigset modelName attaches the default Simulink® Desktop Real-Time™ configuration set SimulinkDesktopRealTime to the model, and then activates the configuration set. This set specifies various simulation and code generation parameter values that are useful when working with a Simulink Desktop Real-Time model.

example

sldrtconfigset modelName 'ERT' attaches the default Simulink Desktop Real-Time configuration set SimulinkDesktopRealTime_ERT for Embedded Coder® software to the model, and then activates the configuration set. This set specifies simulation and code generation parameter values that are useful when working with a Simulink Desktop Real-Time model in the Embedded Coder environment.

example

configset = sldrtconfigset returns the default Simulink Desktop Real-Time configuration set object. Later, you can attach this configuration set to a model.

example

configset = sldrtconfigset('','ERT') returns the default Simulink Desktop Real-Time configuration set object for the Embedded Coder software. Later, you can attach this configuration set to a model.

Examples

collapse all

Set model sldrtex_vdp to the default configuration set. Read the configuration set into a variable.

  1. openExample('sldrtex_vdp');
    sldrtconfigset sldrtex_vdp
  2. configset = sldrtconfigset;
    configset.Name
    ans =
    
    SimulinkDesktopRealTime

Open model sldrtex_vdp and set gcs to the default Embedded Coder configuration set. Read the configuration set into a variable.

  1. openExample('sldrtex_vdp')
    sldrtconfigset(gcs, 'ERT')
  2. configset = sldrtconfigset('','ERT');
    configset.Name
    ans =
    
    SimulinkDesktopRealTime_ERT

Input Arguments

collapse all

The model to which you attach the default Simulink Desktop Real-Time configuration set.

Example: sldrtex_vdp

Output Arguments

collapse all

The default Simulink Desktop Real-Time configuration set, which later you can attach to a model.

Version History

Introduced in R2015a