Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Custom AlarmViewer
PostPosted: Fri Mar 16, 2012 10:02 am 

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

Offline
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.


 Profile  
 
 Post subject: Re: Custom AlarmViewer
PostPosted: Fri Mar 16, 2012 4:35 pm 
User avatar

Joined: Fri Jul 15, 2011 3:21 pm
Posts: 214

Offline
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


 Profile  
 
 Post subject: Re: Custom AlarmViewer
PostPosted: Mon Mar 19, 2012 10:30 am 

Joined: Fri Feb 03, 2012 11:38 am
Posts: 13

Offline
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.


 Profile  
 
 Post subject: Re: Custom AlarmViewer
PostPosted: Mon Mar 19, 2012 10:45 am 
User avatar

Joined: Fri Jul 15, 2011 3:21 pm
Posts: 214

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

Code:
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 5917 times ]

_________________
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer
 Profile  
 
 Post subject: Re: Custom AlarmViewer
PostPosted: Mon Mar 19, 2012 10:53 am 

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

Offline
Thank you Ron for your reply.

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

Best regards,
antoineA.


 Profile  
 
 Post subject: Re: Custom AlarmViewer
PostPosted: Mon Mar 19, 2012 11:11 am 
User avatar

Joined: Fri Jul 15, 2011 3:21 pm
Posts: 214

Offline
It's available in the current release of iX Developer 1.31.93.

_________________
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer


 Profile  
 
 Post subject: Re: Custom AlarmViewer
PostPosted: Tue Mar 20, 2012 1:46 am 

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

Offline
Ron L. wrote:
It's available in the current release of iX Developer 1.31.93.


The "up" and "down" buttons???


 Profile  
 
 Post subject: Re: Custom AlarmViewer
PostPosted: Tue Mar 20, 2012 6:52 am 

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

Offline
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.


 Profile  
 
 Post subject: Re: Custom AlarmViewer
PostPosted: Tue Mar 20, 2012 7:22 am 

Joined: Fri Feb 03, 2012 11:38 am
Posts: 13

Offline
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.


 Profile  
 
 Post subject: Re: Custom AlarmViewer
PostPosted: Tue Mar 20, 2012 9:29 am 

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

Offline
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:
void Button1_Click(System.Object sender, System.EventArgs e)
{
   //Globals.AlarmServer.Acknowledge();   
   Globals.AlarmServer.ClearNormalAlarms();
}

_________________
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: