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

9 visualizzazioni (ultimi 30 giorni)
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

Risposte (1)

Nithin
Nithin il 10 Feb 2025 alle 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.

Categorie

Scopri di più su MATLAB Web App Server in Help Center e File Exchange

Prodotti


Release

R2006a

Community Treasure Hunt

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

Start Hunting!

Translated by