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.

Setting up Graph Window with GEL on CCS5?

All:

I know that you can add sliders for variables using GEL scripts.

Can the same type of GEL script be used to create a graph of data stored in a buffer?

Present instructions regarding graph window:

From the CCS Debug View, Tools-->Graph-->Single Time  will bring up the following window. There are 4 values that need to be changed from the default values:

   Acquisition Buffer Size – change to the size of the buffer = 4000

   Dsp Data Type – change to 16 bit signed integer

  Start Address – the address of the buffer:  0x20000

  Display Data Size – again, change to the size of the buffer = 4000.

 

I would like to be able to do the above from a MyFunctions pull-down menu:

MyFunctions-->Graph_Waveform

 

 

  • Hi Todd,

    Tweaking the graph is not possible via GEL or DSS. You can probably do this via GUI scripting which is not officially supported. The best would be to have a console command to do this. I don't think one exists but I can file a request for you.

    Thanks

    ki

  • Ki:

    Thanks for your email. Yes, I think adding a console command would be a good thing.

    The CCS graphing feature has been a real time-saver for the product that I have been working on. It allowed me to display 32-bit data gathered from a buffer, and gave some immediate feedback to the code that was written.

     

  • Hi Todd,

    There is a scripting console command called 'openAnalysisView' that may be what you are looking for. You can open a graph and import a graph properties file. The graph properties file would have the properties for your graph and importing it would restore the properties.

    js:> help openAnalysisView

    Description: opens an Analysis View.  E.g. to open a single time graph, openAnalysisView('Single Time','C:\\abc.graphProp')
    Syntax: openAnalysisView(viewID,arg)
    Arguments:
      viewID - Name of the view. Please see feature specific view names For CCS Graphs Feature: 'Single Time', 'Dual Time',  'FFT Magnitude', 'FFT Magnitude Phase', 'Complex FFT', 'FFT Waterfall'
      arg - See feature specific interpretation of this argument For CCS Graphs: Used as a property file from which to load the graph property values

  • Does this mean we can't save a graph as a component in a screen lay-out after we have set one up, by saving it in a perspective? It seems like we should be able to do this, yet I have not managed to.