Hi,
I need some help debugging/fixing an error I am having with my Simulink model. I have serial send & receive blocks from the embedded coder library, as well as the serial configuration block. The model sends & receives data to an Arduino, with the model in 'run' mode. I have tried a number of suggestions from the forum, replacing all the serial blocks, restarting my MATLAB and computer, clearing the workspace and classes, running in administrator mode, and confirming all configurations. Nothing seemed to fix the error and let my model run.
My model was running fine prior to this but stopped working randomly, outputting this error:
Error:MATLAB System block 'HITL_Simulation/serial_send_data/Subsystem Reference/Enabled Subsystem3/Serial Send' error occurred when invoking 'setupImpl' method of 'system.SerialSend'. The error was thrown from '
'C:\Program Files\MATLAB\R2024b\toolbox\shared\seriallib_blocks\+system\SerialSend.m' at line 137
'C:\Program Files\MATLAB\R2024b\toolbox\simulink\ui\studio\config\m\+SLStudio\StartPauseContinue.p' at line 0
'C:\Program Files\MATLAB\R2024b\toolbox\simulink\ui\studio\config\m\+SLStudio\ToolBars.p' at line 0'.
Caused by:
The selected port is not configured. Use Serial Configuration block to configure the port.
If anyone has any suggestions on how to fix this that would be greatly appreciated.
Thanks.