Versions Compared

Key

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

Description

This function helps replacing SimPowerSystems electrical blocks by ARTEMiS electrical blocks or replacing ARTEMiS electrical blocks by SimPowerSystems electrical blocks. This function is useful because ARTEMiS provides advanced blocks for real-time simulation; 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.


Background Color
color#D3D3D3


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').