Always Active / .Read()

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
filou
Posts: 22
Joined: Thu May 03, 2012 11:06 am

Always Active / .Read()

Post 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
Attachments
Always active.PNG
Always active.PNG (11.29 KiB) Viewed 6315 times

User avatar
Edmund
Posts: 92
Joined: Thu Nov 29, 2012 2:27 pm

Re: Always Active / .Read()

Post 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.
Edmund Andersson

AITECH AB

Part of Beijer Integrator Group

Post Reply