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

9 vues (au cours des 30 derniers jours)
Yash Mittal
Yash Mittal le 9 Mai 2022
Réponse apportée : Nithin le 10 Fév 2025 à 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

Réponses (1)

Nithin
Nithin le 10 Fév 2025 à 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.

Catégories

En savoir plus sur MATLAB Web App Server dans Help Center et File Exchange

Produits


Version

R2006a

Community Treasure Hunt

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

Start Hunting!

Translated by