Page 1 of 1

Refresh Chart from Code

Posted: Mon Dec 26, 2016 1:33 pm
by Isakovic
I have this function in my code.

function void osvezavanje()
ChartSetTimeRangeEndWidth(GetDayOfMonth(),GetMonth(),GetYear(),GetHour(),GetMinute(),0 ,3600);

But it doesn't refresh the Chart. Time range of Chart is set to External and "OnLine" is set to No. It works for the first Template when it initially sets the time range and then doesn't refresh it afterwards. It doesn't work for Charts on other Templates also. This loop is running, I tested it with incrementing gate value.
Is it not possible to change time range of Chart while RunTime is running or am I making a mistake?