How to check if filters are active on AlarmViewer

3 Posts
2 Users
0 Likes
33 Views
f.cubattoli
(@f-cubattoliarcinfo-com)
Posts: 167
Reputable Member
Topic starter
 

Hello!

One of my customer is developing a big application for Metro transportation in PcVue.

They want to know if there's a way to "inform" the user that the Alarm Viewer have some filters set.

Apparently is possible, through VBA & SCADA BASIC to set/change the active filter, but I didn't find nothing to retrieve the filter for displayng an alert(for example a red border around the Alarm Viewer). :dry:

Thankyou! :blush:

 
Posted : 21/05/2013 5:16 pm
ED
 ED
(@e-duvalarcinfo-com)
Posts: 138
Estimable Member
 

Hi Filippo

If you are using the activeX toolbar you can see which button are selected or not.
If you are using SCADA BASIC for filtering you still see the button which are selected in the toolbar.

But if you are using filter with Scada Basic or VBA and do not display the toolbar button I would suggest you create an internat bit Name FILTER_ON that you set to 1 when you apply a specific filter and that your reset to 0 when you remove the filters.
With this internal bit then you could make the animation you like. (remember that the activeX is always on the foreground 😉

 
Posted : 27/05/2013 10:31 pm
f.cubattoli
(@f-cubattoliarcinfo-com)
Posts: 167
Reputable Member
Topic starter
 

Thank you Manu for your suggestion!!

We have choosen your idea.

  • Inside the Sample project SVHMIDEMO, there's a mimic with everything already done for alarm filtering using scripting.
  • I have suggested to my customer to copy & paste it in his project, disable any native filtering tool & do a little adjustment in the SCADABASIC code of the example for tracking if a filter is active.

Merci 🙂

 
Posted : 30/05/2013 1:41 pm