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.

Graphing multiple floating point values

I am attempting to graph two variables on the same timescale, but I not getting sensible y-values and I believe this to be because I'm unable to set the DSP data type to a non-integer value. Attached is a screenshot of the issue - the graph is of V_mag (where V_mag is equal to 34V +- 2V at all times. For the dual time graph, I've put in the starting address 0x000087AA@Data (which obviously correlates to that shown in the main window).

So ultimately I have 4 questions - 

1) Can a graph floating point values in the same way as displayed? If so, how?

2) Can I plot the dual time side by side? I expect this probably has a simple answer, but I've found it very difficult to find.

3) To graph 3 or more variables on a synchronized timescale, is there a better way to do this than having multiple dual-time graphs with a linking variable?

4) What is the purpose of 'groups', and how do I edit them? I expect this to be a simple answer as well, but I'm also having difficulty finding an answer to it...

Kind regards & thanks in Advance

EDIT: I realise I forgot to add the screenshot - I'll add that ASAP.

EDIT2: Attached image. Basically what this question is about is whether you can plot 3 or more variables on a synchronized time scale in the format as displayed.

  • Hi Gautam,

    I had already visited that thread, but it does not answer my question, because my question refers to specifically a floating point values. I now realise I forgot to add the screenshot, and once I do, this will become clearer. In regards to the 4 parts of my question, the thread is not relevant because:

    1) Does not refer to this specific case example.

    2) Yes, I know it exists, but how to do it? It's not obvious to me...

    3) The thread does not answer this part of the question at all.

    4) Also N/A to the thread.

    Thanks none-the-less for your help.

  • Hi,

    Let me take a stab at your questions:

    1) did you try to select the floating point options in the Dsp Data Type drop down? Check the attached screen.

    2) If you right-click on the tab that display DualTimeA (or B), you can select Detached and this will enable the screens to be moved independently of the CCS workbench. Also check the attached screen.

    3) No. You will have to open a dual and a single time graphs, or three single time graphs.

    4) Is this related to graphs? I couldn't find such option for graphs.

    Hope this helps,

    Rafael

  • Hey Rafael,

    1) Yes, already tried that - does not represent the true values for the numbers (tried both 32 bit and 64bit floating), nor the actual style of the data recorded  - getting mostly nothing with occasional spikes in the data rather than a small random fluctuation around an average value.

    2) Thanks for that. I actually meant side-by-side within a common window, but nevermind.

    3) Ok.

    4) When you right click on the y-axis or x-axis values, you get the option of Groups... which has submenu items.You can select a group, add a group or delete a group, but no editing capabilities.

    Thanks for your assistance, but maybe I"m right in thinking that Code Composer studio isn't really cut out for revolutionary things like graphing variables simultaneously.

    Thanks for your help Rafael.

  • Hi,

    1) I think I know what may be happening in your case. The Acquisition Buffer Size specifies the number of values read at a given time. According to your screenshot, the two values you are reading have a dimension of 1, therefore the graph is reading the correct value plus 49 samples of the next memory positions.

    4) I see now what you mean. For that I would check the CCS context help (simply hit F1 when the graph view is highlighted). One detail, though: I was able to group only Dual Time graphs.

    Cheers,

    Rafael

  • Thanks Rafael, I'll check it out next week.