Wednesday, October 18th 2017, 1:50am UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

paw39

Beginner

Date of registration: Jan 16th 2015

Posts: 6

1

Sunday, January 25th 2015, 7:27pm

GRAPH YT - draw as fast as possible

Hello!
I have question about Graph widget.
When i tried to add values to graph I can see it is too slow for me. Is there any possibility to draw it very fast? I get data very fast and I want to draw all.
For example: is it possible to collect data for one screen in memory and then put it on screen?

Thanks

This post has been edited 1 times, last edit by "paw39" (Jan 25th 2015, 9:51pm)


SEGGER - Adrian

Super Moderator

Date of registration: May 26th 2009

Posts: 994

2

Monday, January 26th 2015, 10:39am

Hello,

Have you tried using automatic Memory Devices with the Window Manager?

Best regards,
Adrian

paw39

Beginner

Date of registration: Jan 16th 2015

Posts: 6

3

Monday, January 26th 2015, 8:04pm

I have these lines in my code:

C/C++ Source code

1
 #if GUI_SUPPORT_MEMDEV				    WM_SetCreateFlags(WM_CF_MEMDEV);   #endif



I don't know how to use it with graph, can you provide any example?
Best regards

SEGGER - Adrian

Super Moderator

Date of registration: May 26th 2009

Posts: 994

4

Tuesday, January 27th 2015, 11:13am

Hello,

This does not require an example. The function WM_SetCreateFlags() set create flags to be used for all windows which are created in the following. Please make sure to have enough memory for the Memory Device usage. Details about Memory Devices can be found in the emWin user manual.

Best regards,
Adrian

paw39

Beginner

Date of registration: Jan 16th 2015

Posts: 6

5

Tuesday, January 27th 2015, 12:31pm

I found out that I can use function GRAPH_DATA_YT_Create and attach data to graph. It is better because I can add array. But it is possible to do this in loop:

1.Collect data in array
2.attach data to graph.
1.Collect data in array
2.attach data to graph..
1
2
1... etc

I am not sure if Graph widget can do this fast enough or if I need to just use function GUI_DrawGraph()..