An further issue is discussed in: Delay-on-loading-data
The workaround disucssed there is to have the items always subscribed. An altrnative to subscribe variables via trend, is to subscribe them in a local script, which is always active (so attach it e.g. to the root element of your project.
const im = shmi.requires("visuals.session.ItemManager");
im.subscribe([
"GVL_BASE.stTeachMgr.myVar1",
"GVL_BASE.stTeachMgr.myVar2"],
// optinal callback function, is not necessary
// for you and can be removed
(name, value, type) => {});
Keep in mind that you shouldn't do this workaround for too many variable, to keep the load of PLC and communicaton small.
... View more