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.

Similar Matlab Function block?

0 votes
1,054 views
Hi everyone.

In Matlab/Simulink it's possible to write a code in a block called Matlab Function so you can manage your inputs and creates the desired outputs.

Well. First question: Is there in Plecs Standalone the similar "block" ? Is the C-Script block ?

Second question: Is this the only way to get my goal?

Thank you.

Bye.
asked Jul 3, 2018 by nikilito (113 points)

1 Answer

+1 vote
Hello,

Yes, in PLECS Standalone, the C-Script block is likely your best option. It might also be achievable using the State Machine block. Have you tried either of these?

Best,

Kris
answered Jul 25, 2018 by Kris Eberle (1,583 points)
Hi!

Thank you for your answer.

I tried to use C-Script but for some things is quite difficult... maybe because I don't know very well C! :)

I'll take a look at State Machine block... I didn't know it existed!

Regards.
...