How to generally use the stream input port in a real-time windows target model?
古いコメントを表示
Hey guys,
I'm wondering, how I can use the stream input port (via a generic serial interface) in a real-time windows target model. The block needs a sample time, but my source sends asynchronously. So I use the data ready port to trigger a subsystem. I use a sampletime much higher than the signals can occur. This 'solution' works.
But if I plot the values I received there are of course a lot more points, each point for one timestep, although I only need the value at the time I receive the serial packet. So there are a lot more datapoints than I need, and this needs some memory.
So is there a way to handle a asynchronously data transfer to plot (and save) the data only, when there is new data?
Thank you very much!
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で System Configuration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!