This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hey guys,
I want to use Simulink external mode to do online parameter tuning (for instance of gain blocks) in my control algorithm that runs on my target (Launchpad F28379D).
Furthermore I want to scope and log data in another model (a host model) that runs in normal mode so I can log data into the workspace of Matlab.
I also know that the external mode communication with my Launchpad works via the SCI_A communication.
So my question is: Is it possible to run the MCU algorithm on the Launchpad in External mode via SCI_A communication and
send data to the computer via a SCI transmit block also with the SCI_A channel and run the host model in normal mode to receive the sent data? If not, is it possible to use SCI_B for sending the data to the host model?
My Launchpad is linked to the XDS100 Class USB Serial Port (COM10) of my computer over one USB cable. Does this physical USB connection provide only one SCI connection or for example the SCI_A and SCI_B connection that I can both use in Simulink at the same time for the purpose described above.
Thank you very much in advance. You guys would help me a lot!
Hi Johannes,
I have some info from my development team I can share:
I'm not 100% sure how to completely set up SCI-B, but it's easy in the model to set up the Rx/Tx blocks. I suspect SCI-B would get transmitted out on the correct pin, and that would need to sent back into the PC via a COM port, and you may need some sort of MATLAB script to read from the COM port, which you would call in your model.
If I get any more suggestions on how to make SCI-B work, I'll add them to this thread.
As always, you can contact MathWorks Technical Support for immediate assistance. They may have additional resources and ideas on how to proceed.
Cheers,
-Brian
Hi Johannes,
From your description the need to use SCI_B is for signal logging in the host model. Correct? This is actually done by external mode on the same serial connection using which you are doing the parameter tuning. So in the same connection we are supporting both features. Hence, you really dont need to investigate on using the SCI_B for logging data in host model. The data logging procedure is outlined in the link below: