FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
12-20-2023 10:01 PM - edited 12-20-2023 10:02 PM
12-20-2023 10:41 PM
Hello @Josaphat_Aviles ,
Could you please provide some more information? From the post title, it sounds like you have written an application in c++ that writes some data to a .csv file.
1. Where is the c++ application running?
2. Where are you trying to save/download the .csv file to?
12-20-2023 10:51 PM
Hello @Sgilk,
I build a snap of C++, using your template of Hello world. I already receive data from a cRIO, and save it by default in the same location path(in a csv file).
Then... I can visualize the information in Diagnostics >> Logbook. But I can not download the csv.
Do I have to storage in a specific url? Like this one: "/var/snap/rexroth-solutions/common/solutions/activeConfiguration/"
12-20-2023 11:03 PM
For example the only documentation that I found similar to storage csv files is this one:
But I can not find something with C++. 😥
12-20-2023 11:10 PM
If you are looking to download the .csv through the ctrlX OS web interface, it will need to be saved to the active configuration. You can also save to the WebDav directory and access the files via a WebDav client. The third option would be to save locally to external storage uSD or USB. Any examples should transfer across languages fairly well because most of this configuration is in the snap build pipeline rather than the logical source code.
--- See Persisting Configurations.
--- See WebDav GO Example.
--- See Storage Extension.
12-20-2023 11:10 PM
1. Where is the c++ application running?
R: Ctrlx 7
2. Where are you trying to save/download the .csv file to?
R:Ctrlx7
12-21-2023 12:48 AM
There is a lot of informacion but with JSON, nothing wit C++, Is there some video or example? Is quite general info.
12-21-2023 01:07 AM - edited 12-21-2023 01:36 AM
JSON is simply a standard of encoding data in a human readable format. It can be used with any programming language.
You wrote that you have already generated the .csv file in your c++ application? All you need to do at this point is save that file in one of the locations I listed in the previous comment, and make sure you have the necessary configurations in your package manifest.
If you are using C++, see these libraries: filesystem, fstream
Please let me know if you have any more specific questions. I'm sorry I don't have a full example for your use case.