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/TMS320F28069: GUI Composer Version 1 - Saving text boxes values to text files at specific time intervals

Part Number: TMS320F28069

Tool/software: Code Composer Studio

Hi,

I read through your tutorial on saving graph data to a text file in GUI Composer utilizing the app.js file.  My application is similar( uses text boxes) and builds on this. How would one read out the values of multiple text boxes at snapshots in time (ex. 3 snapshots with 10 second delays in between) so that the output file only contains values for those exact times?  Some of the textboxes will have numerical values that are streaming in real-time while others may contain a string or fixed numerical value.

Best,

JV

  • Hi JV,
    Please note that that version 1 has been deprecated in support. We encourage people to try using GCv2 if possible. That said, we understand there are people who are more comfortable with GCv1. Note that support for it is limited.

    As for your question, take a look at the tutorial, processors.wiki.ti.com/.../FileOperations. You can create a timer to pull the data from the text boxes and write it to a file. Take a look at the setTimeout or setInterval javascript methods: javascript.info/settimeout-setinterval

    Thanks
    ki
  • Hi,

    While this is somewhat useful, I am looking to pull values from 3 separate text boxes at the same time with a click of button and save those values to a text file. Below is my dojo/ready function where I can already pull from the text box "textbox_output_speed". How would I write the code to include two other text box values (i.e. textbox_2 and textbox_3)? The function getData is called in the process of clicking a button for the text box values, so I assume a similar tweak is needed there as well.


    require(["dojo/ready"], function(ready){
    ready(function(){
    // logic that requires that Dojo is fully initialized should go here
    dijit.byId('textbox_output_speed').watch('value', function( prop, newValue, oldValue) {
    logData( newValue, false);
    });

    });
    });


    function getData() {
    return dijit.byId( 'textbox_output_speed').get('value');
    }

    Thank you,
    JV