How are data points added to the "Plot" widget in the v2 component library?
I know in the v3 you add the "Plot Data Points 2D" widget, is there something similar for v2 library?
Thank you in advance,
Alex.
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.
How are data points added to the "Plot" widget in the v2 component library?
I know in the v3 you add the "Plot Data Points 2D" widget, is there something similar for v2 library?
Thank you in advance,
Alex.
I have requested assistence from the GUI Composer team and will let you know of any updates as I get them
I heard back from the team and unfortunately there is no direct equivalent in GCv2.
As verbatim from the team:
V2 started with regular, simple graphs which have widgets exposed through Line Graph, Scalar Graph, Temperature graph etc. They all use same underlying library which is relatively basic. We had some advanced use cases and we added a plotly library based widget mainly for advanced uses cases where people needed advanced features. Thus you can add a plot widget, but then you need to configure it and feed it data using javascript.
When we re-designed v3, we decided to have only a single graphing library and more flexibility where you add a single “container” plot and then drop as many “data scatter series” as you want. Each data series element corresponds to a single line on the graph.
One question they asked was why you are interested in using v2 over v3 since v2 is being deprecated in support.
They also mentioned that if you are set on using v2, you can explore using that plotly widget mentioned earlier.
See the demo: https://dev.ti.com/gallery/view/21031/Plotly_Demo which you can import into GC Designer to get an idea of what is involved. Unfortunately this demo app is light on some details and does not show how to get data from target and trigger graph updates. It has javasscript code to create dummy data arrays and update plotly using canned data.Hence not sure if you still want to go down this road...
ki
Hi Ki,
I am interested in using v3 however based on the bug outlined in this post TMS320F28335: TI Gui Composer - C2000 microcontrollers forum - C2000︎ microcontrollers - TI E2E support forums , Full functionality can not be achieved hence a focus on v2 applications.
In terms of the v3 plot functionality, for the 'plot_data_points_2D' widget, does a full array (of defined capacity) need to be bound to the points from the start, or can a single point be transferred at a time and then stored within the application for plotting. I am interested due to limited memory space on hardware.
Thank you in advance
I am interested in using v3 however based on the bug outlined in this post TMS320F28335: TI Gui Composer - C2000 microcontrollers forum - C2000︎ microcontrollers - TI E2E support forums , Full functionality can not be achieved hence a focus on v2 applications.
I replied to your post in the other thread. Please provide yoru GC solution so I can take a look.