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.

CCSv6.1.3 and GUI Composer: No variable binding for button

Guru 20045 points


Hello,

In GUI Composer, how do I bind a button to a variable.  Neither Bind->Label nor Widget->Label work.

Stephen

  • Also, setting setting Widget->Name to the variable name and Value to 1 doesn't.
    Stephen
  • Where is the documentation for GUI Composer?

    I found this post .  

    I added a dsScript.js file to my GUI Composer project with the contents shown below.  I also added myStepOver to the onclick evert.  GUI_Var doesn't get set to 1 when I click the button.

    What am I doing wrong?

    Stephen

    importPackage(Packages.com.ti.ccstudio.scripting.environment)
    function myStepOver( steps) 
    {
        if(!$active_context_name)
        {
            throw "An active Debug Session is required for myStepOver()";
        }
        
        var debugServer = ScriptingEnvironment.instance().getServer('DebugServer.1');
        var session = debugServer.openSession($active_context_name);
    
        session.expression.evaluate("GUI_Var = 1");
    
    }

  • Ok, I found this: e2e.ti.com/.../385515

    The value button works, however the logic is backward: Widget->Value = variable name and Binding= Value. You would think it would be the other way around.