How can I send the Output data generated by Matlab Simulink Model on GCP?

10 ビュー (過去 30 日間)
Yash Mittal
Yash Mittal 2022 年 5 月 9 日
回答済み: Nithin 2025 年 2 月 10 日 11:31
Hi,
I am working in EV BMS System. I am designing one simulink model which will generate the reading of current and voltage as an ouput. Now , I need to send all the readings to my Google Cloud Platform to anlayse. Is there any way by which i can send it.
Thanks

回答 (1 件)

Nithin
Nithin 2025 年 2 月 10 日 11:31
Hi Yash Mittal,
To send the readings you generated to Google Cloud Platform (GCP), you can start by exporting the data to a "csv" or ".mat" file.
voltageData = out.voltage; % Assuming 'out' is the structure with your data
currentData = out.current;
dataTable = table(voltageData, currentData);
writetable(dataTable, 'bms_data.csv');
Once you have your data in a "csv" file, you can upload it to Google Cloud Storage (GCS), which can then be accessed by other GCP services. You can also acheive this by installing and configuring the Google Clound SDK in your machine and upload your files to a GCS bucket using the "gsutil" command.
Leverage the following MathWorks documentation to learn more about "writetable" function:
Refer the following documentation to understand about the ‘gsutil’ command:
I hope this resolves your query.

カテゴリ

Help Center および File ExchangeMATLAB Web App Server についてさらに検索

製品


リリース

R2006a

Community Treasure Hunt

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

Start Hunting!

Translated by