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.

GUI Composer JS Error

Other Parts Discussed in Thread: CCSTUDIO

I have just tried the Blinky tutorial on my shiny new ccsv6 download. I get to the point where I click on the app.js and I get a Windows Script Host error. Line: 5, Char: 1, Error: Object expected, Code: 800A138F, Source: Microsoft JScript runtime error.

Anyone know of a reason why this is so?

  • Leethal,

    Why are you clicking on the app.js file? To run the example you want to run the only executable in the folder. It should be named blinky.exe for the blinky example.

    Mandeep

  • Hi Mandeep,

    I was following P32 of the tutorial for the GUI Composer under Getting Started half way down on this page

    http://processors.wiki.ti.com/index.php/GUI_Composer (also via the Read More of the GUI Composer Icon of the app centre)

    Lee.

  • Hi Lee, 

    It sounds like you are double clicking app.js to try to open the file. I think CCS is trying to use your windows default program to run the .js file, which by default is Windows Scripting Host. WSH is triggering the error. CCSv6 does not include Javascript Development Tool package by default which triggers this sequence of events. One quick thing that you can do is install Javascript Development tools from CCS App Center (View -> CCS App Center) and then click on See More in first row and install .js dev tools, it should be near bottom. Once you restart you should be able to double click on .js file to open it in text editor within CCS. 

    Having said this, it does not seem like editing .js file is your end goal. Page 32 of the Tutorial slide deck is talking about clicking on Preview button to launch the application within CCS not double clicking on app.js to start the app. 

    Martin

  • Hi Martin,

    Thank you for your answer. It makes sense as it does mention it will open in CCS. I think we are talking about different pages. I have a snippet from the page below:

    1.Double-click on app.js in the Projects
    area at the bottom left

    This opens app.js in the CCS Editor
    with some stub functions

    I shall give it a try.

    Lee.

  • Hi Martin ,

    That did fix my problem and I was able to enter preview mode.

    I do however have an error. Next to the dial is a red cross which when highlighted says

    value: The index value is null.

    I have redone the project but end up with the same result. I'm uncertain what index the error is referring to.

    ** EDIT** It Works . I didn't run it in debug mode.

    Thanks.

  • Hi Lee, 

    It is possible that we have a different version. I was looking at tutorial available on GUI Composer Wiki. I am glad to hear that it is working for you. Red X usually appears when GUI Composer Runtime can't find the symbol that has been specified in Widgets Binding section. This could be because there is no debug session or program/symbols have not been loaded or that variable does not exist in the program. 

    Martin

  • Hi,

    I was able to get through most of the tutorial here - http://software-dl.ti.com/dsps/dsps_public_sw/sdo_ccstudio/ccs_training/modules/gui_composer/GUI_Composer.pptx

    It works as expected in CCS.

    The very last step involves running the Standalone Application and it does not work for me.

    When executed, it shows "value: identifier not found: delay"

    In Configuration I can see that the Connection is established and initialized. What else do I need to do?

    Thanks,

    Stephen

  • Hi Stephen, 

    This usually means that either the program was not loaded or symbols were not loaded and hence GC runtime can't find variable "delay" which one of your widget's is bound to. 

    When you were exporting your app, there should have been a field that asks you for which program to use with your app. You would need to select the same binary (i.e. .out) that you used to develop/test your app in CCS. 

    Martin