Please take a minute to review and accept our Terms of Use.
Welcome to the PLECS User Forum, where you can ask questions and receive answers from other members of the community.

Many technical questions regarding PLECS are answered on the Technical Solutions page of our website. Tutorial videos, specific application examples, and pre-recorded webinars are available on our YouTube page. Please follow us on LinkedIn for the latest Plexim news.

Call a PLECS simulation script in MATLAB

0 votes
132 views
I try to call a simulation script which i created in PLECS in Matlab. I used the jsonRPC connection to have a connection between PLECS and Matlab. But i dont know which command i have to use for addressing a specific PLECS simulation script. Basically i want to click "run" on Matlab and then this simulation script in PLECS should starting.
asked Aug 14 by Robin (12 points)

1 Answer

0 votes
I don't believe this is possible actually. The JSON-RPC connection between MATLAB and PLECS Standalone was a more recent feature we added compared to Simulation Scripts in Standalone, which effectively allow you to do similar things as you would with MATLAB scripts with Blockset. So the motivation was more to provide a similar capability between the two versions of PLECS, but we didn't anticipate a user need for linking the two scripting capabilities. So in short, at the moment you would need to port your logic (with some adjustments for function handles and syntax) from the PLECS Simulation Script to a MATLAB script. We can update this information if this changes in the future.
answered Aug 15 by Kris Eberle (1,623 points)
...