Hi,
I have created a graph dialog. I'm using the GRAPH_DATA_YT_Create() function to create a YT graph and then attaching data using GRAPH_AttachData(). Further I am updating the datapoints of graph using GRAPH_DATA_YT_AddValue().
I have loaded the values to be plotted into an array and I'm running GRAPH_DATA_YT_AddValue() within a loop. However, I wish to see the values being plotted in real time thus I'm adding a delay of GUI_Delay(100). This isn't working and the graph does not display any value. How to get around this?
void MainTask(void)
{
// Create dialog containing the GRAPH widgets
GUI_CreateDialogBox(_aDialogCreate, GUI_COUNTOF(_aDialogCreate), _cbDialog, 0, 0, 0);
while (1)
{
for (i = 0; i < GUI_COUNTOF(data_array); i++)
{
GRAPH_DATA_YT_AddValue(_hDataYT0,(data_array-60)*1.5);
//GUI_Delay(100); //commented out now, If enabled it doesn't display anything on graph
}
GUI_Delay(100);
}
}
Thank You.
I have created a graph dialog. I'm using the GRAPH_DATA_YT_Create() function to create a YT graph and then attaching data using GRAPH_AttachData(). Further I am updating the datapoints of graph using GRAPH_DATA_YT_AddValue().
I have loaded the values to be plotted into an array and I'm running GRAPH_DATA_YT_AddValue() within a loop. However, I wish to see the values being plotted in real time thus I'm adding a delay of GUI_Delay(100). This isn't working and the graph does not display any value. How to get around this?
void MainTask(void)
{
// Create dialog containing the GRAPH widgets
GUI_CreateDialogBox(_aDialogCreate, GUI_COUNTOF(_aDialogCreate), _cbDialog, 0, 0, 0);
while (1)
{
for (i = 0; i < GUI_COUNTOF(data_array); i++)
{
GRAPH_DATA_YT_AddValue(_hDataYT0,(data_array-60)*1.5);
//GUI_Delay(100); //commented out now, If enabled it doesn't display anything on graph
}
GUI_Delay(100);
}
}
Thank You.