power_microgrid.slx error

I am trying to use the 'Simplified Model of a Small Scale Micro-Grid' and I keep encountering errors with the Battery and the Subsystem.
The errors I get are:
Warning: Could not evaluate MaskDisplay commands of block 'power_microgrid/Battery':
File "C:\Program Files\MATLAB\R2022a\toolbox\physmod\powersys\DR\DRdemo\Battery.jpg"
does not exist.
Warning: Could not evaluate MaskDisplay commands of block 'power_microgrid/Subsystem':
File "C:\Program Files\MATLAB\R2022a\toolbox\physmod\powersys\DR\DRdemo\Battery.jpg"
does not exist.
I am very much a novice MATLAB user and after tearing my hair out all day I thought I'd ask the community for help.
I am using MATLAB on a computer running Windows 11 Pro (10.0.22000)...if that information is relevant.

2 commentaires

Walter Roberson
Walter Roberson le 18 Avr 2022
Find some (any) small jpg image and copy it to C:\Program Files\MATLAB\R2022a\toolbox\physmod\powersys\DR\DRdemo\Battery.jpg ? Just so you can get further?
Amy Ross
Amy Ross le 18 Avr 2022
That is a cunning plan. Oddly when I went through the files there is no DRdemo folder as it goes C:\Program Files\MATLAB\R2022a\toolbox\physmod\powersys\DR\DR so I renamed the second DR folder to DRdemo and when I went to save a picture called battery.jpeg there I was told I don't have permission to save in that location and to contact the system administrator which I guess will need to be my next step.

Connectez-vous pour commenter.

Réponses (1)

Amy Ross
Amy Ross le 18 Avr 2022

0 votes

Interestingly the power_microgrid works in MATLAB 2020b but not later versions so something must have changed between versions. If you have admin rights to the computer you are using you could try @Walter Roberson's approach to saving a couple of jpegs to see if that gets you past the error. Thank you to Walter for taking the time to reply.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by