isALarmActiveFiltered expression tags

I have been having difficulty getting good quality and values from the isALarmActiveFiltered expression on expression tags.

Here is an example I’m looking for any active alarms that have the display path Gen/Cylinder

isAlarmActiveFiltered("", "", “Gen/Cylinder”, 0, 4, 0, 1, 0)

From the examples I went over, my syntax seems correct.

I have tried forcing the quality like talked about in this post but my tag values don’t seem correct. As in I know I have an alarm active with that alarm display path but I still will see zero as a value.

Is there anything else I need to add?

I ended up contacting support. They reminded me…
“If you’re doing this in an expression on an expression tag then that’s going to be running in the gateway scope and you will have to include the tag provider in the tag path. If the tag is in the provider named “default” then including [default]* as the first parameter should work. If your provider isn’t called “default” then just replace it with your provider name between the brackets and see if that works.”

1 Like