Scripting PollGroups

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
Hari Mistry
Posts: 4
Joined: Thu Nov 08, 2012 10:16 am

Scripting PollGroups

Post 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

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Scripting PollGroups

Post by mark.monroe »

See this post regarding forcing a tag to read data.

Code: Select all

Globals.Tags.MyTag.Read();
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Hari Mistry
Posts: 4
Joined: Thu Nov 08, 2012 10:16 am

Re: Scripting PollGroups

Post 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?

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Scripting PollGroups

Post 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.
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Post Reply