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.

GUIComposer Dgrid binding

Other Parts Discussed in Thread: TM4C1294KCPDT

I am working in Code Composer Version: 6.1.1.00022  with Guicomposer 6.1 trying to bind to data in a Tiva TM4C1294KCPDT.  I can Bind a char array "labels" or int array "testdata" to the field column names and it will display properly but... if I bind labels to the column names and testdata to the data field  the labels will display but instead of data all that shows is lines or empty cells. Could you please let me know what I am missing. I've search for info on dgrid but it seems very limited.

Also if this does work properly would you then be able to edit these cells which would then update on the target as the textbox does?

I see you can export this data to a file would you also be able to import a file to update the target?

This would be a big help to download a set of parameters to the target.

Thank you, Dan

  • Hello Dan, 

    The "data" property of DGrid should be bound to a two dimensional number array.

    The DGrid widget is a read only widget. It will not let you edit its cells. Alternatively you can use multiple edit boxes and bind each edit box to a specific array element. 

    The DGrid widget has "Export" property but does not have "Import". If you want to read data from the user's local file system and upload that data to the target you can see the example: http://processors.wiki.ti.com/index.php/GUI_Composer/FileOperations. That does require Javascript codding, though. 

    Regards

    Dobrin

  • Thank you.
    I have tried the FileOperations and it does offer some of the functions I am looking for.
    Is there a recommended amount of textbox widgets you can place on a page? I have 64 values I would like to include.
    Is there a limit on the number of text boxes that I could set the value of from the textarea?
    I format one binding value %H to display in hex. Can I set that hex value to the textbox?
    It almost is working but sometimes hangs with the progress bar constantly saying reading gel file value.
  • There should be no limit of the number of text boxes you can include in your page. I have seen applications with more than 100 widgets.  

    When the target is running, the page is checking every second if the values of the bound variables have changed. If so, the page displays the new values. 

    If you have problem with too many variables, and the target connection is slow, you may want to decrease the update frequency. See this post for that:   http://processors.wiki.ti.com/index.php/GUI_Composer/Debugger_Refresh_Rate . Probably that will fix the hangs you are seeing. 

    You should be able to set the formatting of a textbox. It should display properly and the user should be able to enter the values in Hex. Keep in mind that HEX formatting can only be applied for Integer types, not float types.