Page 1 of 1

Always Active / .Read()

Posted: Mon Feb 25, 2013 1:31 am
by filou
Hi,

I would like to know when it's necessary to use the function "Always Active" for a Tag?

When using scripting, when is it necessary to use the method "Read()" ?
Globals.Tags.Tag1.Read();

For the moment, these functions are not clear. Can you give me some explanations?

Thank you
Philippe

Re: Always Active / .Read()

Posted: Mon Feb 25, 2013 8:46 am
by Edmund
Once I had a project with a script that was running every minute and calculated some values.

It was using 3 tag values, and everything works just as it should until the user navigated to a page were the tags was not in any use.

iX will only read the tags if they are in use in the native controls (not in scripts), unless they been set to "Always Active".

So I had to call the Read() function before I used the value or just set them to always active.