How can I send the Output data generated by Matlab Simulink Model on GCP?
9 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Nithin
on 10 Feb 2025 at 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.
0 Comments
See Also
Categories
Find more on MATLAB Web App Server in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!