I’m assuming you’re asking about Trident test results. There are 2 ways to do this:
1. Go into your list of Inputs, click the Alkx# where # is the AquaBus address of your Trident. On this screen, click the Advanced tab. Here you can enable alarms and specify the upper and/or lower values.
While this method is the simplest, it has two drawbacks:
- you cannot prioritize the alarms, so the Alk alarm could prevent the Apex from alerting you about a more serious issue like high temperature or a leak.
- the Apex will send you a notification once per hour until the next Trident test result is back within the desired range.
2. Add this line of code to your EmailAlm program:
If Alkx# > 9.0 Then ON
If Alkx# < 8.0 Then ON
If you place this code above the conditions like temperature and leak sensors, those more critical conditions would have priority over the Alk alarm, so the Apex will alert you of the more serious issue.
However, this method still has the annoying side effect of sending you an hourly notification.
3. Use a virtual output to check the Alk reading, but once it detects a problem, only keep it activated long enough to send a single alarm notification, then turn it off so it doesn’t keep nagging you:
[Alert_Alk] — virtual output
Set OFF
If Alkx# > 9.0 Then ON
If Alkx# < 8.0 Then ON
When On > 001:00 Then OFF
[EmailAlm]
Set OFF
If Output Alert_Alk = ON Then ON
I explain all of these techniques in my tutorial on Apex Alarms:
Neptune Apex Programming Part 6 of our series: Alarms.
www.reef2reef.com