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
M3c-PSPWM - EFM_LFM -baja escala - v4.plecs (850 KB)
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.