フィルターのクリア

simulink sends data to excel real time?

5 ビュー (過去 30 日間)
elham modaresi
elham modaresi 2018 年 10 月 19 日
回答済み: Jaswanth 2024 年 2 月 7 日
Hi everyone! How can simulink sends data to excel real time?

回答 (1 件)

Jaswanth
Jaswanth 2024 年 2 月 7 日
Hi,
I understand that you would like to export Simulink data to excel real time. As per my knowledge, there is no feature at present that can directly export data to excel, real time. However, following workaround could be helpful:
  1. In your Simulink model, drag and drop the ‘To Workspace’ block from the Simulink library. Configure the block to set Variable name, Save format and Sample time. Make sure to connect the output signal(s) that you want to record to the To Workspace block and run the simulation.
  2. After the simulation is complete, the data will be available in the MATLAB workspace under the name you specified in the To Workspace block's parameters.
  3. Use MATLAB's ‘writetable’ function to write the table to an Excel file.
For more information on the blocks and functions mentioned above, kindly refer to the following MathWorks documentations
  1. Log data to workspace from Simulink model - Simulink (mathworks.com)
  2. Write table to file - MATLAB writetable (mathworks.com)
I hope the provided details are helpful.

カテゴリ

Help Center および File ExchangeData Import from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by