Refresh Chart from Code

Discussion about Code Builder Builder and Winlog language support.
Isakovic
Posts: 10
Joined: Tue Jun 14, 2016 10:01 am

Refresh Chart from Code

Postby Isakovic » Mon Dec 26, 2016 1:33 pm

I have this function in my code.

function void osvezavanje()
while(1)
ChartSetTimeRangeEndWidth(GetDayOfMonth(),GetMonth(),GetYear(),GetHour(),GetMinute(),0 ,3600);
Sleep(1000);
end
END

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?

Return to “Code - Code Builder”

Who is online

Users browsing this forum: No registered users and 1 guest