Clear Filters
Clear Filters

Simulink External Mode Reconnect after cutting USB connection

3 views (last 30 days)
Dear community,
I'm facing a problem of the reconnection of my TI Delfino F28379D Launchpad:
I'm building a model which inputs external data in order to control it (control loop is not done yet in the attached model). The model should work stand alone.
From time to time I want to connect it to my laptop to transfer data via simout as matfiles and progress it in Matlab. Therefore I usually build it once at the beginning with 'Monitor and Tune' and afterwards 'Connect' and 'Disconnect' it whenever I need to. This works well for me.
Obviously I don't want to keep my laptop connected to the board all the time. Therefore I'm using an Y-USB-wire to guarentee a permanent external current supply independent of the the data connection to my laptop. Whenever I disconnect and reconnect the USB connection of my laptop, afterwards I can't 'Connect' the model to the hardware anymore. By trying so I'll get the following error message:
Error occurred while executing External Mode MEX-file 'ext_comm':
Failed to connect to the target. A time-out occurred while waiting for the connection response from the target. Possible reasons for the time-out:
a) The target is not switched on.
b) The target is not connected to your host machine.
c) The application for the model is not running on the target. You might have clicked the Stop button. If the Run button is not dimmed, click it. Otherwise, click the Build button, which downloads and runs your application on the target.
Therefore I would need to 'Monitor and Tune' my model everytime I connect my laptop to the board. This would be unfavourable since it will affect my controlling loop in the background. Is there a possiblity to avoid this?
Thanks for your help and best regards

Answers (1)

Manas Meena
Manas Meena on 24 Mar 2021
you can try the following trouble shooting steps to solve the issue
1. Ensure the GPIO pins for SCI_A port and the one configured on simulink are same.
2. Ensure the COM port as detected in device manager is same as specified in the external mode pane.
3. Also ensure the jumper settings on the DOCK and any DIP switch on control card are in a position to support serial communication.
The following link might be useful-




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!