Custom AlarmViewer

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
antoineA
Posts: 20
Joined: Fri Dec 02, 2011 8:22 am

Custom AlarmViewer

Post by antoineA »

Hi everybody,

Is it possible to create buttons (for example "Up" and "Down") in AlarmViewer which select displayed alarms?. I know we can select them by touching the screen, but I find it's too small and not very practical.

I have looking for in AlarmViewer methods but my knowledges in C# are limited...

Thanks a lot

antoineA.

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

Re: Custom AlarmViewer

Post by Ron L. »

This is on my wish list, but currently there is not a way to do this with the Alarm Viewer object.
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer

kim
Posts: 15
Joined: Fri Feb 03, 2012 11:38 am

Re: Custom AlarmViewer

Post by kim »

Hi.

I continue this post with a related question:
Is it possible to add alarm buttons for Ack, Info etc but not using the buttons in the AlarmViewer ?

I like to have a Clear all -button elsewere than in the AlarmViewer window. I assume it can be done with a script but I cannot figure out how.

Thank you.

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

Re: Custom AlarmViewer

Post by Ron L. »

Yes, some of that can be done in script by referencing the AlarmViewer instance on a screen.

Code: Select all

void Button1_Click(System.Object sender, System.EventArgs e)
		{
			//AlarmViewer1.AcknowledgeSelected();
			AlarmViewer1.ShowInfo();			
		}
Attachments
Snap 2012-03-19 at 10.44.19.jpg
Snap 2012-03-19 at 10.44.19.jpg (110.58 KiB) Viewed 18183 times
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer

antoineA
Posts: 20
Joined: Fri Dec 02, 2011 8:22 am

Re: Custom AlarmViewer

Post by antoineA »

Thank you Ron for your reply.

Is this functionality will be available with the next version of Ix Developer?

Best regards,
antoineA.

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

Re: Custom AlarmViewer

Post by Ron L. »

It's available in the current release of iX Developer 1.31.93.
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer

antoineA
Posts: 20
Joined: Fri Dec 02, 2011 8:22 am

Re: Custom AlarmViewer

Post by antoineA »

Ron L. wrote:It's available in the current release of iX Developer 1.31.93.
The "up" and "down" buttons???

antoineA
Posts: 20
Joined: Fri Dec 02, 2011 8:22 am

Re: Custom AlarmViewer

Post by antoineA »

hi Ron,

I have another question concerning Alarm features. Is there a way to define the position of Red light apparition when an alarm is activated?? By default, it appears on the upper left corner of the screen and I would like to define it on the center of the screen.

Best regards,
antoineA.

kim
Posts: 15
Joined: Fri Feb 03, 2012 11:38 am

Re: Custom AlarmViewer

Post by kim »

Thanks Ron for the answer, it wasn't so hard :)

But how to make script if I like to have the button on another screen than the AlarmViewer itself?

I like to have the .ClearNormalAlarms() on a separate screen.


antoineA: I disabled the iX alarm indicator and made my own which is visible if an alarm is active. Then I can make its look and location as I like.

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

Re: Custom AlarmViewer

Post by mark.monroe »

Hi Kim,

To clear the alarms using a button from a different screen you need to get a hold of the AlarmServer object. You can then call your functions on that and all the AlarmViewers in the project will get updated.

Code: Select all

void Button1_Click(System.Object sender, System.EventArgs e)
{
	//Globals.AlarmServer.Acknowledge();	
	Globals.AlarmServer.ClearNormalAlarms();
}
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Post Reply