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.

Implementation error: Cannot get sub-task index for sample time [0.002, 0] in task '[0, 0]'.

0 votes
61 views
hello. I am using RT BOX 1 and when try to upload a model from PLECS stadnalone I get the following error:

"Implementation error: Cannot get sub-task index for sample time [0.002, 0] in task '[0, 0]'."

why does it happen and any suggestion to solve it?

regards
asked Oct 17, 2020 by efrain ibaceta (34 points)

1 Answer

0 votes

The specific issue has to due with the ZOH blocks in your "modelo de clusteres" subsystem.  If you remove these blocks or set the sample time to "Ts" then the issue goes away.

That being said, prior to running this model on the RT Box there are many fundamental changes required to your model.  Some major changes are to 1) use the "Full Bridges (Series Connected)" power modules for your MMC power stage 2) use the "PWM Out" block and" PWM Capture" block for PWM generation and sensing. 

Refer to the RT Box tutorials to get started, particularly the Real-Time Workflow section of the Introduction to the RT Box tutorial which outlines the steps to take a conventional PLECS model and modify it for real-time.

answered Oct 21, 2020 by Bryan Lieblick (474 points)
...