Support : Knowledge base

Knowledge Base

Welcome to OPAL-RT’s Knowledge Base

OPAL-RT offers a repository of support information for optimal use of its technology.

Loading…

Please note that OPAL-RT knowledge base is not fully optimized for mobile platforms.

For optimal experience, use a desktop computer.

Reference Number: AA-02332// Views: AA-02332// Created: 2024-07-19 15:24:35// Last Updated: 2024-07-22 14:55:21
Problem & Solution
Artemis/ SPS: The diagram must contain a powergui block. The block should be named 'powergui' and should be located at the highest level of your diagram

  Artemis/ SPS:The diagram must contain a powergui block.

Problem: The Complete error appears in RTLAB during compilation: 

  The diagram must contain a powergui block. The block should be named 'powergui' and should be located at the highest level of your diagram where Simscape Electrical Specialized Power Systems blocks are found. - Show complete stack trace
    Error using tlc_c


This error appears even though the Powergui is included in the model in the top level of the simulink model


Solution:

One reason why this error happens is since the prefix of the subsystem naming SM and SC is written in CAPITAL letters:


The workaround is to change the SC and SM prefixes by lowercase sm and sc: 



This will solve the issue and allow RTLAB to complete the compilation.