How to send back a continuously updating constant to workspace from Simulink ?

I have a analog read block to read the value of a potentiometer (using arduino). I want to save that value to my workspace in a constant so that i could later use it . I have tried it using ' To Workspace' and 'Simout' blocks , the problem is that the value is stored when the session of the simulink ends , which is clearly what i donot want . I want the constant to update continuously.
Any advice would be appreciated.

1 Commento

Could you explain more about how you plan to use the saved constant simultaneously as the model is running. Is there a MATLAB file that you are running in parallel?

Accedi per commentare.

Risposte (1)

Categorie

Scopri di più su Simulink in Centro assistenza e File Exchange

Prodotti

Richiesto:

il 1 Set 2013

Community Treasure Hunt

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

Start Hunting!

Translated by