Skip to main content
BPeda
Associate II
June 14, 2019
Question

dynamic graph require by past data

  • June 14, 2019
  • 12 replies
  • 3285 views

i want graph by attached data, in touchgfx there is no option to create list and store it

This topic has been closed for replies.

12 replies

Martin KJELDSEN
Principal III
June 14, 2019

Hi,

This text file of yours contains values. What about time? What kind of graph are you looking for? We've done graphs for ECG before, but you may have different needs. There's no official graph widget in the designer, but we have examples and demos that show how to do it.

/Martin

Martin KJELDSEN
Principal III
June 14, 2019

Try checking out "TouchGFX demo 1" - It uses graphs in the Home Automation screen (And you have all the source code in the application)

BPeda
BPedaAuthor
Associate II
June 14, 2019

i had already tried touchgfx demo 1 in touchgfx demo there is random values but i want for x (time) tickcounter , for y values these values are require. i just want how to make list to put these values . Is any ECG examples can you please send me (rajeeemiracles@gmail.com)

Martin KJELDSEN
Principal III
June 16, 2019

Hi @BPeda​,

We don't have any official ECG examples, sorry. ECG or not, you have some Y-values and you could just simulate time by hooking into Model::tick() (happens every 16ms or so on your hardware) to get started.

/Martin

BPeda
BPedaAuthor
Associate II
June 18, 2019

Thanks martin sir,

iam new to touchgfx, please can you create a graph application through this values by model:tick().

Martin KJELDSEN
Principal III
June 18, 2019

Hi @BPeda​,

I won't create an application with your data, but here's a generic application that uses the Graph in a simple way. It uses random() to generate Y values. Please have a look at it and see if you can adapt it to your needs.

/Martin

BPeda
BPedaAuthor
Associate II
June 18, 2019

yeah, i don't know how to apply these y values to graph. in touchgfx there is no list syntax to apply all these y values. iam confusing here only

Martin KJELDSEN
Principal III
June 18, 2019

No, there's no "list" per se. But C++ has lists :) Take a look at the code and see if you can make sense of it - The code has comments.

/Martin

Martin KJELDSEN
Principal III
June 18, 2019

I may be writing an example that can apply a set of values to a graph for another purpose. I will include your data set as well as an example.

/Martin

BPeda
BPedaAuthor
Associate II
June 18, 2019

thank you martin ji,