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 does not consistently inject values into code



I have put together a GUI with GUI Composer, part of which starts processes in my code by changing a value in the code through the use of 'Value Button's.  I have noticed that sometimes I'll click a button and there will be no response.  If I watch the variable the button is supposed to be sending a value to, I will sometimes see it simply never change, even after I have clicked the button several times.  On other occasions I will see the value change momentarily but then change back.  If I try to change the variable in the expression window, I see similar results.  Sometimes I can keep trying to change the variable but it just won't 'stick' until sometimes after many tries. 

Also, is there a way to change the X axis values?  For example, if I wanted to plot a time response I would like the X axis to be in seconds (or milliseconds), not array index number.

Thanks,

Mitch

  • Hi Mitch,

    I was able to use the value button to write to the target. Couple of questions, do you have realtime enable access on your target? Also, what if the target is halted, can you write to the target using the value button?

    Regarding the graph question. The line graph plots an array on your target, each array element can be a representation of seconds (or milliseconds). Have your try using the ScatterPlot? It plots values based on two arrays, x-array and y-array.

    Patrick

  • I have seen mention of real time mode but have not been sure whether I am running that or not, nor how to switch to it.  On CCS5.5 how do I ensure it is running realtime enable access?  

    When halted I see similar behavior.  It seems to be related to a general slowness of CCS.  I have existed some programs and it works a little better.  But generally it seems CCS is really bogged down. 

    On the line graph display I see only axis values reflecting the array index (for a 512 element array, I see -100, 0, 100, 200, 300, 500, 600, for example).  I don't see how to change that to 0, .01, .02, .03, .04, .05, .06 if I want to show a scale from 0 to 50 milliseconds. 

  • If your target is halted and you still experience the value doesn't write to the target, then realtime mode shouldn't be the cause of your problem. There should be a toolbar button at the top of the main CCS window to enable realtime mode.

    Could it be that you have too many views opens, what if you close all the views that you don't need? Does it make any differences? Writing the value in the expression view vs using the Value button?

    For the graph, there is no option to set the x-axis scale for array. What you can do is add a label in the axis. i.e 1 = 1ms. To workaround the label, you can also disable the x-axis ticks and provide your own label using standing label widget. 

    Patrick