Borrar filtros
Borrar filtros

How can I extract real time data (.csv or .text format) from my Simulink file running in simulink desktop real time?

2 visualizaciones (últimos 30 días)
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?

Respuestas (1)

Saurabh
Saurabh el 16 de Mayo de 2024
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.

Categorías

Más información sobre MATLAB 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