Page 1 of 1

Scripting PollGroups

Posted: Mon Nov 26, 2012 7:14 am
by Hari Mistry
Hi

I have been trying to script access the PollGroupls in my project the appear under Globals.Tags but I dont get any actions after that point.

I would like to poll a group of tags at a curtain point in my code

Globals.Tags.PollGroup ?????

cheers

Re: Scripting PollGroups

Posted: Mon Nov 26, 2012 10:02 am
by mark.monroe
See this post regarding forcing a tag to read data.

Code: Select all

Globals.Tags.MyTag.Read();

Re: Scripting PollGroups

Posted: Wed Nov 28, 2012 6:07 am
by Hari Mistry
This works well with a tag but the Read() function is not possible with a pollgroup yet it still comes under the tag heading.

Globals.Tags.Pollgroup1

What functions are availiable to access the Pollgroup with scripts?

Re: Scripting PollGroups

Posted: Wed Nov 28, 2012 9:18 am
by mark.monroe
The best way is to use the autocomplete feature of C#. When you end an object with a '.', then the functions that are exposed are shown in a list box.

The other thing is to press F1 when you are on the script screen and the script help will come up and you can look at the class methods to see what functions an object has.