Is there a way to set temporary variables, declared within a mimic, (Like BIT%) from within SCADA Basic?
As temporary variables exist in the HMI environment and SCADA Basic effectively runs in the HMI environment I thought it might work - but my attempts so far have failed....
Not urgent - just to satisfy my curiosity.
Cheers, Robin
Arrgghh Robin you are so curious! :ohmy:
Yes it is possible.
dim sTmp as str;
sTmp = "BIT1%";
?sTmp = 1;
Hello Nico,
what kind of write-behavior can we expected manipulating the temporary variables of a mimic?
- like the variable database - variables
- like the TemporaryDB - variables
my experience shown me, that the biggest difference between the above one is that with temporaryDB - variables you don´t have problems when manipulating them more than one times in a SCADA Basic function (e.g. using as counter, which should be shown in a mimic). You should not use Variable-Database - variables more than one time in one SCADA - Basic function. If I remember well, the async-execution of the SCADA - Basic is the problem.
There are 2 points.
- Temporary Variable created using TemporaryDB instruction is written synchronously (not sure but almost!)
- Temporary Variable coming from a mimic (i.e. REG01%) are like standard variable and are written asynchronously.
But I wouldn't bet on it. Who want testing?
Maybe the one who asked the question ... :whistle: 👿
Do you mean the person who stared the post or asked the question? 😉 :whistle:
I had often problems with this behavior, I think we should request an answer from a developer and make a Doc-SPR to have a defined state.
Hello,
I have now an answer from Dominique,
there are two categories of variables:
- permanent Variables (created in the e.g. AE)
- temporary Variables (created in Animations and SCADA Basic -Temporary_DB-)
The first category is written asynchronously.
The second is bound to the UI and is written synchronously.
-> closed 😉


