Azzera filtri
Azzera filtri

How to plot data from serial port against actual time in Simulink S-functions?

1 visualizzazione (ultimi 30 giorni)
I am receiving data through serial port from a microcontroller in a custom S-function block. Microcontroller is sending data sampled data after every 100msec (but it's not constant) whereas my simulation time step is 1msec. Matlab is making a plot against simulation time that is first sample at time t=0 and second sample at time t = 1msec. But I want to make a plot with the delay equal to the incoming data rate.

Risposte (0)

Categorie

Scopri di più su Block and Blockset Authoring in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by