Search found 20 matches

Search

by Mgiacome
Tue Sep 09, 2025 9:10 am
Forum: HowTos
Topic: Alternative to timed functions
Replies: 5
Views: 3369

Re: Alternative to timed functions

Last update: I'v used the dpQueryConnectSingle as a trigger to perform the count of active alerts filtered by prior and DPs
by Mgiacome
Mon Sep 08, 2025 5:10 pm
Forum: HowTos
Topic: Alternative to timed functions
Replies: 5
Views: 3369

Re: Alternative to timed functions

I have several synoptics (home pages) that contain links to different parts of the plant; for each plant section, specific datapoints are defined, and for these datapoints specific alert_hdl are configured. On these home pages I display the number of active alarms (CAME) and the total number of alar...
by Mgiacome
Mon Sep 08, 2025 8:50 am
Forum: HowTos
Topic: Alternative to timed functions
Replies: 5
Views: 3369

Alternative to timed functions

In my project I have several queries that evaluate the number of active alerts on different datapoints, and I was looking for a way to refresh them every 10 seconds. After discarding timed functions, I thought about using a datapoint as a clock. I created a DP using dp_fct based on the value of the ...
by Mgiacome
Mon Jul 21, 2025 10:34 am
Forum: HowTos
Topic: Decoding json in Desktop UI
Replies: 6
Views: 24625

Re: Decoding json in Desktop UI

Thanks Leo, I saw in the logs that the startup time on the client is only a couple of seconds slower than before. Also, using only getPath without autoUpdateDir doesn’t seem to be sufficient to load files during runtime
by Mgiacome
Mon Jul 21, 2025 8:57 am
Forum: HowTos
Topic: Decoding json in Desktop UI
Replies: 6
Views: 24625

Re: Decoding json in Desktop UI

[SOLVED] So thanks to killian, I've moved my json files to the /data folder (so they are not encrypted). Inside my scripts I've changed the path to something like string path = getPath(DATA_REL_PATH); fileToString(path + "mappings/example.json", jsonData); Then I've set autoUpdataDir = &qu...
by Mgiacome
Fri Jul 18, 2025 5:15 pm
Forum: HowTos
Topic: Decoding json in Desktop UI
Replies: 6
Views: 24625

Re: Decoding json in Desktop UI

Thanks for the reply, really useful. Something odd happens in Desktop UI, cause it downloads json files from the scripts/libs folder by default (and they are encrypted), now I'm trying to figure out how to tell it the correct folder /data/mappings/filejson.json
by Mgiacome
Fri Jul 18, 2025 11:29 am
Forum: HowTos
Topic: Decoding json in Desktop UI
Replies: 6
Views: 24625

Decoding json in Desktop UI

Hi, I would report a strange behaviour of winccoa clients. In some panels I have scripts that load information from a json file (fileToString and jsonDecode functions used), in ULC clients it's all ok, json is parsed correctly and everything run smoothly. When I use Desktop UI client, it doesn't wor...
by Mgiacome
Tue May 20, 2025 11:22 am
Forum: HowTos
Topic: Script to filter alerts
Replies: 10
Views: 11041

Re: Script to filter alerts

So, I've managed to accomplish a sort of dynamic filter on AES panels. The filters are the DP list, a PRIORITY and a STATE The following function creates a new AEScreen internal DP with the current UI number as index (so each user has a different and customized AEScreen); it also creates a new AESPr...
by Mgiacome
Tue Apr 08, 2025 2:27 pm
Forum: HowTos
Topic: Script to filter alerts
Replies: 10
Views: 11041

Re: Script to filter alerts

Yes it is possible and yes there is an example. The Lab Section holds a document 'XFile 10 - The Alarm'. It will show how to define a custom AES definition and how to open it Good luck Share the fun Frenk Mulder Hi, I've found this topic cause I'll need to customize a filter on openAES function, bu...
by Mgiacome
Thu Dec 12, 2024 8:44 am
Forum: HowTos
Topic: acknowledge all active alerts
Replies: 3
Views: 4049

Re: acknowledge all active alerts

Sorry there was a typo.

I check act_state in order to understand if is possible to acknowledge that alert ( DPATTR_ALERTSTATE_APP_NOT_ACK or DPATTR_ALERTSTATE_DISAPP_NOT_ACK). Still get different values between dpQuery and alertGet