Is it possible to run Simulink in external mode (connected to some microcontroller) with a sample time of 1e-6 s or even lesser?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have noticed that when I run my Simulink model in external mode to receive some analog input data from a microcontroller (such as TI LAUNCHXL-F28379D) with a high sampling rate (sample time of 1e-4 or less), the model does not run properly. At sample time of 1e-4 and 1e-5 seconds, the lower right corner of Simulink shows the time elapsed since start of the simulation, but the time very slowly compared to real time (physical) wall clock. At 1e-6 sample time the model simply refuses to run and claims that the target device is not connected. Is this possibly due to a large amount of data passing thorugh the USB cable and overloading it in some way? Also is Windows 10 OS even capable of running fixed step Simulink simulations (for external mode with real hardware connected) at such small sampling rates? What is the smallest sample time that Windows is capable of running for external mode? I am currently trying to use the TI microcontroller as a black box, as just an advanced form of Arduino Uno with faster sampling capability. I am a beginner in this field so I'll be grateful for any help/guidance received. Thank You in advance!
0 comentarios
Respuestas (1)
Sathvik
el 12 de Abr. de 2023
Hi Nirbhay
I understand that you are trying to run your Simulink Model in external mode with a sample time of 1e-6 time.
Yes, it is possible that the amount of data being sent to the TI board is affecting the simulation. You can consider optimizing the model to reduce the amount of data being sent.
The following article might help you with that
The Windows 10 is capable of handling Simulink simulations at small sampling rates, even lesser than 1e-6 sample time in some cases, depending on the hardware (Processor, RAM) used in your system.
Hope this helps
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!