Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
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.

Respuestas (0)

Categorías

Más información sobre Block and Blockset Authoring 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!

Translated by