Selecting picture from script

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
uniworld
Posts: 4
Joined: Wed Jan 16, 2013 11:09 pm

Selecting picture from script

Post by uniworld »

We have requirement to select different picture for example select red colored valve (ofru)when a particular tag value is zero (0) and select green colored valve(ofgu) when the same tag value becomes one(1).

How to achieve the above requirement by writing script in C #?

please find the attachment for details

regards
Dayanand
Attachments
Picture Selection.docx
Screen shots of iX developer
(263.11 KiB) Downloaded 534 times

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

Re: Selecting picture from script

Post by mark.monroe »

Select a multi-picture control and select the tag you want to use to control what picture to display. Then select the pictures you want to use. The Start and End values are the range in which that particular image will be displayed when the associated tag takes on that value.

When ever the tag value changes, it will display the picture. To change a tag value in script.

Globals.Tags.MyTag.Value = 1;
Snap 2013-02-20 at 08.09.18.jpg
Snap 2013-02-20 at 08.09.18.jpg (55.85 KiB) Viewed 4640 times
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Post Reply