How can I extract real time data (.csv or .text format) from my Simulink file running in simulink desktop real time?
3 次查看(过去 30 天)
显示 更早的评论
I started using simulink desktop real time recently and developed battery management system in real time. My objective is to run my BMS model in a dedicated single board comupter in simulink desktop real time mode and process the BMS real time data (in .text file or .csv file.) in an external hardware controller. Please let me know how to extract the data from simulink desktop real time?
0 个评论
回答(1 个)
Saurabh
2024-5-16
Hi Amardeep,
I uderstand that you want to extract the data into a file (.text file and .csv file) from Simulink desktop real time.
To achieve this, first we need to set Scope parameters for logging to file. Save data to a file by first saving the data to MATLAB workspace through Simulink Scope block.
After creating Simulink Model, add Scope block add enter the Signal and triggering properties for data logging to a file.
Select the Log data to Workspace check box in the scope parameters dialog box for the software to save data in the data logging MAT-files.
This was only a basic overview of data extraction. Kindly refer to the following link for a detailed explanation:
I hope this was helpful.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!