Where can I find the V2Glib library for Simulink?

17 views (last 30 days)
Azmat
Azmat on 29 May 2024
Edited: Steve Miller on 17 Nov 2025 at 13:06
Hi,
I am working on a Simulink model for an industrial load simulation, and I encountered an error stating that the 'V2Glib' library is missing.
Error: Failed to load library 'V2Glib' referenced by 'MG2/Industrial Load 5 MVA /Asynchronous Machine (customized)'.
Does anyone know where I can obtain this library or who I might contact to get it? Any help would be greatly appreciated!
Thank you.
  3 Comments
Walter Roberson
Walter Roberson on 15 Nov 2025 at 21:36
I checked the fairly full installation of a number of releases, but I was not able to find it.

Sign in to comment.

Answers (1)

Steve Miller
Steve Miller on 17 Nov 2025 at 8:36
That library was renamed to renamed to VehicletoGridSystemLib.slx. It is part of an example. In R2025a or earlier, run this command
openExample('simscapeelectricalsps/VehicletoGridSystemExample')
That will download the example and you will have access to renamed to VehicletoGridSystemLib.slx
  2 Comments
Walter Roberson
Walter Roberson on 17 Nov 2025 at 12:54
R2025b Release 1:
>> openExample('simscapeelectricalsps/VehicletoGridSystemExample')
Error using matlab.internal.examples.findExamplesXml (line 23)
Unable to find "simscapeelectricalsps/VehicletoGridSystemExample". Check that the documentation for the product containing this example file is installed or change your "Documentation Location" preference to open the documentation on the web.
Error in
findExample (line 14)
examplesXml = matlab.internal.examples.findExamplesXml(component,arg);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in
openExample (line 42)
metadata = findExample(exampleId);
Steve Miller
Steve Miller on 17 Nov 2025 at 13:05
Edited: Steve Miller on 17 Nov 2025 at 13:06
You need to open this in R2025a or earlier.

Sign in to comment.

Categories

Find more on Simscape Electrical in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!