cancel
Showing results for 
Search instead for 
Did you mean: 

Touch GFX dynamic Graph widget crash the application

IB.1
Associate III

Hello Touch GFX Guys.

Hardware: STM32H7B3I development board

Software: Touch GFX designer 4.16

STM Cube IDE 1.5.0

We are trying to experiment with "dynamic graph" widget and experiencing some problems .

After adding widget on the screen follow code is generated

    dataGraph1.setScale(1);
    dataGraph1.setPosition(10, 10, 380, 180);
    dataGraph1.setGraphAreaMargin(0, 0, 0, 0);
    dataGraph1.setGraphAreaPadding(0, 0, 0, 0);
    dataGraph1.setGraphRangeY(0, 100);
 
    dataGraph1Line1.setScale(1);
    dataGraph1Line1Painter.setColor(touchgfx::Color::getColorFrom24BitRGB(20, 151, 197));
    dataGraph1Line1.setPainter(dataGraph1Line1Painter);
    dataGraph1Line1.setLineWidth(2);
    dataGraph1.addGraphElement(dataGraph1Line1);
 
    dataGraph1.addDataPoint(6.40222585735995f);
  ........
    dataGraph1.addDataPoint(15.6299816028386f);
    dataGraph1.addDataPoint(9.83211034085783f);
    dataGraph1.addDataPoint(10.0465691581937f);

Once we run the application code is crushing. if we comment

dataGraph1.addGraphElement(dataGraph1Line1);

and all follow lines:

dataGraph1.addDataPoint(9.83211034085783f);

application is running but obviously no graph :)

We do not have any functions in the code to update graph yet...

We tried to set in CANVAS BUFFER "Overwrite default buffer size " to 7200 bytes

but no luck.

Please advise if anything else we can do to overcome this problem, or any other information we can provide.

Thank you for all your help and support

Regards,

i

20 REPLIES 20
IB.1
Associate III

Hi Alexandre,

Can you please advise, what is status of this request?

Thank you,

I