How can I log data on the host computer while my simulation is running on a Speedgoat target?
15 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 18 de Ag. de 2022
Editada: MathWorks Support Team
el 21 de Oct. de 2024
I am using Simulink Real-Time to run a simulation on a Speedgoat target computer. I need to periodically access the simulation data on my host computer during execution. What will be the best way to monitor and log signals on the host computer?
Respuesta aceptada
MathWorks Support Team
el 20 de Nov. de 2024 a las 0:00
Editada: MathWorks Support Team
el 21 de Oct. de 2024
Refer to the following link to learn more about signal logging basics with Simulink Real-Time: https://mathworks.com/help/slrealtime/signal-logging-start-here.html
To monitor and log signal data on the host computer while a simulation is running on a Speedgoat target, consider one of the following options:
SDI can show signals live while the application is running on the target. It is also possible to export and save data from SDI (to the base workspace or a file) but that can only be done after the simulation run on the target has stopped.
More information can be found through the following link: https://www.mathworks.com/help/simulink/slref/simulationdatainspector.html
If it is possible for you to stop recording data at any time during the model’s execution, as a potential workaround, you may consider using the stopRecording/startRecording APIs when using the SDI.
When you call "stopRecording", the system will stop all data streaming. Then, you can export the data from SDI while it has stopped streaming. After export, you could continue streaming by calling "startRecording" again.
More information can be found through the following links:https://www.mathworks.com/help/slrealtime/api/slrealtime.target.startrecording.html https://www.mathworks.com/help/slrealtime/api/slrealtime.target.stoprecording.html
You can use communication protocols such as UDP or TCP/IP to send data from the Speedgoat target computer back to the host computer while the simulation is running. The packets are transmitted over the Ethernet link between the host and target computers. The clients can be implemented in MATLAB or using external applications.
Examples can be found through the following links: https://www.mathworks.com/help/slrealtime/ug/target-to-host-transmission-using-udp.html https://mathworks.com/help/slrealtime/ug/target-to-development-computer-transmission-using-udp.html
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Real-Time Signal Logging and Streaming en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!