BusyHandler
The BusyHandler is a class of TcHmiBaFramework. It provides information about whether a control is still busy (e.g. waiting for information from the TwinCAT HMI Server). Recognizable by the loading animation.

Functions
logTimerResultsOfControl
Checks which actions on a control lead to loading times.
Namespace: TcHmi.BuildingAutomation.BusyHandler.logTimerResultsOfControl
![]() | Is only applicable to controls that implement the TcHmi.BuildingAutomation.BusyHandler.IBusyHandler interface. |
Preparation
Before use, the recording of timer results must be activated. This can be done, for example, at the project level with a code-behind function:
let TcHmi.EventProvider.register('onInitialized', function (e, data) {
e.destroy();
TcHmi.BuildingAutomation.BusyHandler.RecordTimerResults = true;
}
Use
The call is made in the console of the browser after a control has been loaded. The ID of the control is necessary for this.
TcHmi.BuildingAutomation.BusyHandler.logTimerResultsOfControl('DieControlId')
Evaluation
The results of the timers are available in the console window:

It is recognizable what the control was busy with.
In this case, a sub-element with ID Checkbox_Sp_2-ba-fc was waited for, which was busy loading the BaObject most of the time.