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.
03-12-2024 12:39 AM
Does anyone know what is the correct way to debug C++ to work with the micro SD metadata found in the ctrlx core? In theory I can use "Debugging in Build Environment + Connection to Data Layer via TCP".... however for obvious reasons I get error when I try to program based on the SD memory metadata, since it is an environment and I am not programming directly in the ctrlx, I get error, does anyone know if there is a way to do it?
Solved! Go to Solution.
03-12-2024 10:11 AM
Moved to corresponding sub forum SDK.
Do I get it right, that you like to do tests inside of your build environment and have some SD-card available there? as this is not possible as far as I know.
What is possible, is that an app running in your build environment is communication via TCP to a ctrlX OS in a real ctrlX CORE or a virtual one. In this case only TCP communication is available.
Third option is to build the app and install it in a ctrlX OS and e.g. use debug messages or an ssh connection to get more information. See also "How to activate SSH communication in a ctrlX CORE"
03-12-2024 10:24 AM - edited 03-12-2024 10:30 AM
What do you want to access on your SD-Card? This I don't get from your question. But anyway here Is how you could solve this:
Btw: What does it have to do with Real Time?
Best regards,
Nick
03-12-2024 05:56 PM
Main goal:
Create an application to detect micro sd, its name, its free capacity, its total capacity.
With all this information in C++ and data that I already get from a cRIO create conditions in my code and then save them in this same micro SD(It requires know the path file of microSD in Ctrlx).
In case my sd memory is about to fill up, I stop saving information to avoid ctrlx collapse.
03-12-2024 07:10 PM
Hi @Josaphat_Aviles ,
If I understand correctly, you shouldn't need any hard real-time capability for this application.
I agree with @nickH in terms of debug methods. Additionally, you could try and pass a microSD into your app build environment so you are working with the real device rather than an emulation. This would be my ideal setup for development/debug. See this post on a similar topic.
03-19-2024 01:19 PM
Hello @nickH,
I create an app to receiving data millions of data peer second, however after minutes, collapse the Ctrlx core. So the solution that we are thinking is plug in a SD Card and program in our C++ code that storage in that SD, nevertheless I need the name of SD to save the csv files and know the path file to do that, and also I need create a cycle where I can detect when the SD is almost full to stop to receiving data.
Currently I am Debugging in App Build Environment and then build snap to download and upload manually in the ctrlx core.
I already try with C++ code to find metadata but it looks that CtrlX is blocked or doesnt have perssions to know that, thats why I need your support.
Thanks in advance
03-19-2024 02:19 PM
Hi @Josaphat_Aviles ,
I have a couple questions that will help to give you some support.
04-01-2024 06:12 PM
Hello @Sgilk ,
It run in the ctrlx, but receive incorrect information, and there is no possibility to automate sd storage just with plug and play, because it require name of the SD. We continue work with API rest.
thank you