We have been able to upload and realtime mode demo programs but as soon as we populate the Simulink Circuit with our own circuits, realtime mode no longer connects.
Originally, we were attempting to implement closed loop control but in the interest of debugging, all extraneous blocks were stripped away.
The model we were left with still does not connect with realtime.
Apologies in advance, this is most likely an error 40.
(I’ve run out of image embeds, I can not provide screenshots of the model. Apologies)
It looks like you are mixing and matching PLECS C2000 code generation and the Mathworks/Simulink’s C2000 code generation tools. The first two graphics are for Plexim’s tools while the second two graphics relate to offerings from the Mathworks.
You can use PLECS Blockset to generate code using the PLECS toolchain within Simulink. You can then connect to the device using the External Mode in the PLECS Coder Options window. You can see the process starting at T=2:40 in this video.
You cannot use the Simulink external mode / SCI communication with a model generated from the PLECS toolchain, which is what I understand from your last graphic. You cannot generate code for Simulink components using the PLECS C2000 code generation tools and vice versa. (Technically you could establish a serial connection but the PLECS external mode uses a custom protocol).
Does the above information clear things up? If not you’ll need to provide more information on what exactly you are trying to do.