Real time, Matlab, SpeedGoat, Simulink, read write data, Solution?
20 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Bonyadi Arezoo
le 14 Juil 2022
Commenté : Bonyadi Arezoo
le 15 Juil 2022
Hi,I'm using Simulink connected to speedgoat in a real time status. The simulink model includes a user defined block in which along with the main code, there are commands open, close fprintf, fscanf, in order to write/read some numerical data. The model is built correctly, but when the start application button is clicked the following error pops up "external mode open protocol start command failed". So, is there any other way by which we can enjoy write and read data while connected to speedgoat online. Mathwork expers, do you know how to solve this issue?
4 commentaires
Réponse acceptée
Fangjun Jiang
le 14 Juil 2022
Modifié(e) : Fangjun Jiang
le 14 Juil 2022
To store runtime data like "A" in your example, use "Data Store Memory" block in your Simulink model. Use "Data Store Read" and "Data Store Write" block to read and write the data.
To log data for offline use, use "To Workspace" block or utilize signal logging.
7 commentaires
Fangjun Jiang
le 14 Juil 2022
Data Store Memory block does not support variable size signal. See doc
You could declare the maximum size and fill the un-used with zeros.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Simulink Functions dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!