Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Export model as image using simulink API(Export model as image using simulink API)
Export model as image using simulink API [message #1860484] Wed, 09 August 2023 11:07 Go to next message
Alexey Shamanaev is currently offline Alexey ShamanaevFriend
Messages: 4
Registered: August 2023
Junior Member
Hello Epsilon developers,

I'm using simulink api to work with simulink model files from Java.
Now I need to export a model as an image.

I know that there is print command in Matlab which allows to export a model like this:
block.getEngine().eval("openExample('sldemo_enginewc');"
		   + "open_system('sldemo_enginewc/Throttle & Manifold');"
		   + "print (['-sThrottle & Manifold']);");

But it will open matlab itself and run the commands inside it.

Is there any other way export a mode / part of model using the API?

Thank you.

[Updated on: Wed, 09 August 2023 11:09]

Report message to a moderator

Re: Export model as image using simulink API [message #1860485 is a reply to message #1860484] Wed, 09 August 2023 11:29 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2165
Registered: July 2009
Location: York, UK
Senior Member

If memory serves, using "load_system" instead of "open_system" should open the model in the background (without opening the Matlab UI). Does this help?

Thanks,
Dimitris
Re: Export model as image using simulink API [message #1860506 is a reply to message #1860485] Thu, 10 August 2023 13:46 Go to previous message
Alexey Shamanaev is currently offline Alexey ShamanaevFriend
Messages: 4
Registered: August 2023
Junior Member
It works, thank you Dimitris!
Previous Topic:EMC for INI files
Next Topic:Transforming into target structure
Goto Forum:
  


Current Time: Sat Apr 27 10:39:36 GMT 2024

Powered by FUDForum. Page generated in 0.03559 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top