Real time plot in F28335 with ADC

4 visualizzazioni (ultimi 30 giorni)
Manideep
Manideep il 9 Set 2013
Commentato: henda bouyahi il 21 Feb 2021
Hello,
I am reading current and voltages from sensors and sending it to ADC. Now I want to plot these currents and voltages in MATLAB. Is there anyway to do while the DSP is still running?

Risposte (1)

Walter Roberson
Walter Roberson il 9 Set 2013
Are you doing this using the Data Acquisition Toolbox? If so, then yes, it can be done, by using a BytesAvailableFcn callback.
You included "simulink" in your tags; if you want to be doing the above within Simulink without using an S function, then I do not know myself if that is possible.
  2 Commenti
Manideep
Manideep il 24 Set 2013
I'm running the program in simulink
Walter Roberson
Walter Roberson il 24 Set 2013
I think it is possible. A scope block can update per timestep.
I have not worked with Simulink myself, but I do recall that a number of people have asked about real-time plotting.

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by