Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

This function helps

replacing SimPowerSystems

replacing Simscape Electrical Specialized Power Systems (SPS) electrical blocks by ARTEMiS electrical blocks or replacing ARTEMiS electrical blocks

by SimPowerSystems

by Simscape Electrical Specialized Power Systems (SPS) electrical blocks. This function is useful because ARTEMiS provides advanced blocks for real-time simulation

; these

. These blocks contain an optimized implementation of the SPS mathematical model which makes them better suited for real-time simulation.

This function also provides an optional interface to help the user select the blocks to be replaced. The figure below shows the dialog that appear when the function is called with the default argument.

Image Removed

Background Colorcolor#D3D3D3Image Added
Info

Note: ARTEMiS currently only supports the Distributed Parameters line block. Other decoupling blocks than the Distributed Parameters line will be supported in a future release.


Panel
borderColor#627781
borderWidth1
borderStylesolid
titleTable of Contents
Table of Contents
maxLevel3


Usage

opReplaceSpsBlocks(modelName, operation, searchDepth);

Inputs and Outputs

Inputs

modelName

Name of the model to modify.

operation

Optional argument that specified the type of operation to perform when replacing the blocks.

  • ReplaceBlocks: open a dialog that will help to switch between the real-time ARTEMiS blocks and the non-real-time SPS blocks.

  • ReplaceSpsBlocks: automatically replace all SPS blocks by their real-time ARTEMiS equivalent.

  • ReplaceArtemisBlocks: automatically replace all ARTEMiS blocks by their non real-time SPS equivalent.

The default value is “ReplaceBlocks”.

searchDepth

Optional integer that constrains the model search to a specific depth.

Outputs

None

Example

To open a dialog that will help to switch between the real-time ARTEMiS blocks and the non-real-time SPS blocks:

  • opReplaceSpsBlocks(modelName);

To automatically replace all SPS blocks by their real-time ARTEMiS equivalent:

  • opReplaceSpsBlocks(modelName, 'ReplaceSpsBlocks');

To automatically replace all ARTEMiS blocks by their non real-time SPS equivalent:

  • opReplaceSpsBlocks(modelName, 'ReplaceArtemisBlocks').