If I run a model on Arduino board in external mode and then disconnect the cable or the cable connection becomes a little loose, I get the following error,
"Error occurred while executing External Mode MEX-file 'ext_serial_win32_comm'; ExtSetTargetPkt() call failed for ExtSendGenericPkt(). Ensure target is still running"
After that, I reconnect the cable and try to run the model again on Arduino board, I get errors asking me to check the target hardware connection and the COM port setting even though I have not changed the COM port number and the connection is fine.
Best Answer