2175 views|0 replies

3180

Posts

0

Resources
The OP
 

Problems with GRAPH Controls [Copy link]

 I use the GRAPH control to display three curves. Some of the code is as follows: static void _AddValues(WM_HWIN hGraph) { int i; int Add; int Vz; // Add random number data to the three data objects _ahData through three for loops for(i=0;i+="Add*Vz;" add="rand()%(2+i*i);" if(_avalue="" vz="((rand()%2)<<1)-1;" {="">MAX_VALUE) if(_aValue > MAX_VALUE) { _aValue=MAX_VALUE; } else if(_aValue<0) { _aValue=0; } //The following function adds a given data value to a data object. If the data object is "full", which means that it contains the same number of items as specified in the parameter MaxNumItems when it was created, one data item will be moved before the new value is added. Therefore, when adding data items to a full object, the first data item is removed. GRAPH_DATA_YT_AddValue(_ahData,_aValue); } } while(1) { hGraph=WM_GetDialogItem(hDlg,GUI_ID_GRAPH0); _AddValues(hGraph); GUI_Delay(10); WM_Exec(); } I found that the screen is always flickering, and the background grid is always looming. Can any experts please tell me how to solve this problem? Thank you!


Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list