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.

CCS v4 Graph problem

Other Parts Discussed in Thread: TMS320F28335

I seem to have killed the Graph function in CCS v4. It has worked for me in the past but now after setting Graph Properties and hitting OK, the Graph Properties window doesn't disappear. A graph tab (if that's the right term) appears next to the console tab but it contains (default?) axes and no plot. The tab is labelled 'Single Time - 2' and I wonder if that's a clue. Is there another graph 'Single Time - 1' hiding somewhere?

  • Donald,

    It really seems strange. Can you open the Debug perspective and go to menu Window -> Reset Perspective. This usually restores the default window arrangement and configuration, therefore (maybe) fixing this issue.

    Regards,

    Rafael

  • Rafael,

    I tried your suggestion and got an error (see attached screenshot) when I tried to plot a graph.

    On the plus side, I created a new project in a new workspace (copying over my program files) and didn't encounter any problem with graph plotting. It seems as if CCS has tied itself in a knot wrt my previous project.

    Regards,

    Donald 

  • I have another problem with the graph function (Tool -> Graph -> Single Time).

    I am using it to plot the content of an array of 2000 floats, and this actually works fine.

    I then try to export the data of the plot (Right click on the graph -> Data -> Export all...), type in a name for the file, push OK but no file is actually created.

    The reason why I switched to CCS 4 was really because I was hoping I could easily export this kind of data, so that I can use it in other environments (MATLAB).

    Anyway, to fix this I tried to have the array in a watch window, expand it, doing a select all and then copy/pasting, which either gives back an error or copies just a small amount of all the variables (basically, as far I understand, I would need to scroll all the 2000 data so that they get "loaded" in eclipse, and then if I would do a copy paste, that would work... But this would take too long each time).

    Am I doing something wrong? Is there any other way to accomplish what I want to do? (No, print screen is not going to do it, I really need to have the numerical data :P)

  • I solved my problem by abusing printf().

    I couldn't do this previously because at some point printf() stopped working for me; last week I was able to fix the problem with printf() by increasing the heap size with -heap in the .cmd file (see also http://wiki.davincidsp.com/index.php/Tips_for_using_printf ).

    I am still hoping to see the "export..." feature actually working in CCS too though!

    Regards,

    Robin.

  • Donald,

    If you encounter this problem again, please see if you can remmber the steps you are doing to setup the graph. Would like to take a look at this. Also the values of the properties and the target you are running on.

     

    Thanks & Regards

    Ralph

  • Robin,

    The CCS graph is built using the DVT technology (eXpress DSP Data Analysis and Visualization Technology). We added the export feature to all DVT views but ended up turning it off for DVT graphs (should have been removed from the context menu). This feature is still available in DVT table views ... as can be seen in CCS profiler, RTA, etc. table views.

    We'll have a closer look at the graphs and see if we can re-introducing this feature for the graphs in an upcomming CCS release.

    Regards,

    Imtaz. 

  • Hi,

    I'm running and then halting my program, then selecting Graph->single time from the tools menu. The properties I've selected are

    Acquisition Buffer Size 50

    Dsp (sic) Data Type 32 bit floating point

    Index Increment 1

    Q_Value 0

    Sampling Rate HZ (sic) 1

    Start Address w

    Axis Display true

    Dat PLot STyle Line

    Display Data Size 50

    Grid Style Major Grid

    Magnitude Display Scale Linear

    Time Display Unit sample

    Use Dc Value For Graph false

    Hitting OK, Graph Properties window stays on screen and a Single Time -2 tab appears next to the Console but it doesn't show a graph, just axes which are scaled 0 - 100 (sample) and +/-4*10-3.

    Data in array w is 0.0, 1.0, 2.0, ..., 49.0 as (seemingly) verified using View->Memory.

     

    My target is a logicpd L138 eXperimenter board.

     

    Regards,

    Donald

     

    Donald 

  • I have no access to CCS at the moment, but for the starting address try "&w" instead of just "w" (though it shouldn't make a difference, I always use the "&" and it works for me).

    Also, it seems that your array contains 500 elements, not just 50 (from 0.1 to 49.0), so you have to increment Display Data Size accordingly (I always set Acquisition Buffer and Display Data Size the same, so you may try setting 500 for both of those).

    Make sure your array is indeed defined as an array of 32 bits floats, and last but not least, after you have compiled and ran the code, try htting the "refresh" button if you still don't see anything, there should be one somewhere at the top of the graph tab.

    Robin.

  • I have same problem as Donald in CCSv4 beta4. My target is TMS320F28335.

  • Hi Robin,

    My array actually contains 128 values

    float w[128];

    int i;

    for( i=1; i<128 ; i++) w[i] = (float)(i);

    but, for no particular reason, I was trying to graph only 50 of them.

    The floating point data in the array can be seen using the View->Memory facility.

    As per my previous post, I had set both Acquisition Buffer and Display Data Size to 50.

    Currently, I am getting the 'Unable to create view: An unexpected exception was thrown.' error that I mentioned in a previous post. (rather than the blank graph axes)

    However, if I close CCS without closing the tab (in this case labelled 'Line Graph') and then re-launch CCS, the empty axes appear for a second before a message about no CPU being active appears in the tab, now labelled Single Time -2.

     

    Regards,

     

    Donald

  • With repeated lanches of CCS I'm getting various diffeent results. On one occasion I got a graph to appear (singletime.jpg) although the x-axis scale seems wrong - why does it start at 50? I checked the graph properties (graphprop.jpg) but couldn't see anything that might be causing this and closed that window. The x-axis scale now started at 100 (singletimen.jpg).

    Next time I launched CCS and ran the same program I got a graph with no trace (singletimep.jpg)

     

    Donald

    graphs.zip
  • I was also puzzled by the x axis vaules. I have noticed that if you do refreshes, the scale "goes on", i.e. at first it may start at 50, then if you hit refresh it goes to 100, if you hit again it goesto 150 and so on, (depending on your choice for display data size).

    But if you hit reset, then the graph goes back and starts from 0 as you would like to see frmo the very beginning.

    This is how it is working for me at least. [^o)]

  • This is done so that one knows how many samples have been plotted. Note in CCS 3.3 it always stayed at 0 as you kept plotting and you would not know which samples are currently being plotted/viewed. Yes this is the number from the time you last reset the graph as it starts from 0 on reset.

    Regards

    Ralph

  • Donald,

    The graph refreshes also if "ok" is pressed in properties dialog. If you make changes and don't want them then you could press "cancel" and it will not acquire and plot more. So in this scenario it looks like when you say you are checking the graph properties you are pressing "ok". Since your acquisition is 50 and equal to display buffer size you see the next 50 samples each time you press ok. It is the same as pressing manual refresh button on the graph tool bar.

     

    Regards

    Ralph

  • Have added some notes on X-axis scale and other differences between 3.3 and 4.0 graphing behavior

    http://tiexpressdsp.com/index.php/Graph_differences_between_CCSv3.3_and_CCSv4.x

    Regards
    Ralph

  • Donald,

    The Single Time-2 does not seem right. Do you have a -0 and -1 already in the system? i.e. you had them before you shut down from a previous run? 

    If you see any crash while running graphs please send us the dump files or log files that may have such information.

    .dmp files are created in InstallRoot\ccsv4\DebugServer\win32\components\Logs There might also be JVM crash logs. JVM crash log files are named with following pattern hs_err${processID}.log. They are usually created in InstallRoot\ccsv4\DebugServer\bin\win32 or InstallRoot\ccsv4\emulation\analysis\bin You will have to check if those were created? Also, if you could send us workspace log (it is a file called ".log" in workspaceRoot\.metadata folder).

    Regards

    Ralph

  • I'm encountering the EXACT same problem, and I've tried everything to fix it!  I'm running CCSv4 on 64-bit Vista.

     

    When I setup a dual or single plot, I set it all up, or even import a setup I used to use that worked, click "OK" and the dialogue box doesn't disappear.  The graph is always blank.  And I get graph titles such as "DualTimeA-5" and "SingleTime-8" and so on.  I can't find any other graphs anywhere.

     

    Also, it always says "CPU Removed and/or Terminated" when I start back up.  i.e. I can't just run again and see a graph of data like I used to be able to.

     

    I tried to reset perspective to no avail. 

     

    Very frustrating.  :)

  • Clean the workspace: CCSv4 stores various information in a folder called '.metadata' located in the user's workspace. The contents of this folder can get corrupted over time, causing various instability and strange behavior. Cleaning the workspace often helps resolve these issues. The simplest way to do this is to delete the '.metadata' folder in the workspace. This will essentially reset the workspace and restore the environment to the default behavior. All projects that were in the workspace will need to be re-imported into CCSv4, even though they are still physically in the workspace folder. Also note that any modified preference settings will be lost (set back to the default setting). If you wish to avoid resetting those preferences, export the preferences to a file (outside the workspace) by selecting 'File->Export...->General->Preferences->To preference file' before deleting the workspace. Once the workspace has been cleaned, those preferences can be imported back into CCSv4 by selecting 'File->Import...->General->Preferences->From preference file'

     

    That fixed it.  :(  It bothers me that that fixed the problem.  In fact, from that same page, I get the idea that I'll constantly be cleaning my eclipse environment to enjoy stability.  Booooo.  Bad form.