This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS320F28335: GUI Composer V2



Hello,

First of all thanks for the answer, now it works.

I've a new question related to GUI Composer and also related to CCS:

--> I've a Param.c file in my project with parameters defined via a structure in a table. Exemple Param[0].pv_param.value

--> At the end of this file, there is the following definition :

#pragma DATA_SECTION(paramsCRC, "myProject_params");
const unsigned long paramsCRC = 0xB0955481;

It seems that the parameters are stored in the memory, somewhere.

I will, via the GUI i'm building, modify this parameters during the test on the hardware. I want to "save" the parameters in a file and load this file later when I will start again the GUI.

Is it possible ? And if yes, how is it possible ?

Thanks for your answer and time.

  • I split this into a new thread since this is a new question and the previous one is answered.

    In order to bind widgets to variables in the program, they need to be global variables. I'm not sure if I understand what you mean by save and load the parameters from a file, but have you had a look at the examples in the GUI Composer Gallery. Perhaps the functionality you are looking for is shown in one of the examples.

  • Hello,

    Yes I have global variables in my program and they are bind to widgets. What I'm able to do is to modify the values using the widgets.

    Now, I would like to save/export the values of the variables in a file.

    Next time I'll start the GUI, the variables values will be the default values. Now, I would like to apply the previous saved values from the file.

  • Guillaume,

    All the demo examples we have are available in the Gallery.  You can use the ones available there as a starting point and build upon them. If you search for "save file" or something similar in the Search box, you will find an example called "XDS_SaveVariablesToFile" which I think may be what you are looking for.