Skip to main content



      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 07:07 Go to next message
Eclipse UserFriend
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 07:09] by Moderator

Re: Export model as image using simulink API [message #1860485 is a reply to message #1860484] Wed, 09 August 2023 07:29 Go to previous messageGo to next message
Eclipse UserFriend
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 09:46 Go to previous message
Eclipse UserFriend
It works, thank you Dimitris!
Previous Topic:EMC for INI files
Next Topic:Transforming into target structure
Goto Forum:
  


Current Time: Wed Jul 16 02:41:29 EDT 2025

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

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

Back to the top