standard deviation

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
User avatar
Ron L.
Posts: 214
Joined: Fri Jul 15, 2011 3:21 pm

Re: standard deviation

Post by Ron L. »

That can be accomplished with Dynamics.
Attachments
Snap 2012-09-04 at 08.44.08.png
Snap 2012-09-04 at 08.44.08.png (67.96 KiB) Viewed 10056 times
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer

wlederer
Posts: 175
Joined: Fri Jan 27, 2012 4:20 am

Re: standard deviation

Post by wlederer »

Thank You very much Ron. Can we do the same with script?

Regards, Waldemar

User avatar
Ron L.
Posts: 214
Joined: Fri Jul 15, 2011 3:21 pm

Re: standard deviation

Post by Ron L. »

Once you setup the dynamic you can trigger it in script. (i.e. Globals.Tags.Tag1.SetAnalog(3); ).
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer

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

Re: standard deviation

Post by mark.monroe »

Yes, the below will change the color of the Text1 TextBox when Button3 is clicked.

Code: Select all

		void Button3_Click(System.Object sender, System.EventArgs e)
		{
			this.Text1.FontColor = new BrushCF(Color.Aqua);
		}
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

wlederer
Posts: 175
Joined: Fri Jan 27, 2012 4:20 am

Re: standard deviation

Post by wlederer »

Thank You very much Ron. Works fine.
Regards, Waldemar

wlederer
Posts: 175
Joined: Fri Jan 27, 2012 4:20 am

Re: standard deviation

Post by wlederer »

Thank You much Mark for the answer.

When describing a button click event, after: this.Text11... could not find the option FontColor.
Is it because of something is not activated?
Regards, Waldemar

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

Re: standard deviation

Post by mark.monroe »

Not all of the available functions are displayed when you do a '.' after an object. some are not. I am not sure why they did this.

In my example the text box was called "Text1", 'this' simply means to use the current screen.

So "this.Text1" means use the text box called Text1 on the current screen.

I tested the FontColor button code I sent you in iX 2.0.
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

wlederer
Posts: 175
Joined: Fri Jan 27, 2012 4:20 am

Re: standard deviation

Post by wlederer »

Thak You Mark. Where can I find all options?
Regards, Waldemar

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

Re: standard deviation

Post by mark.monroe »

There is no way to find all the options. You have to look at the iX Developer source code and we do not release that.

Hopefully in a future release of iX Developer scripting will have a better documentation system.
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Post Reply