05-31-2007 11:10 AM
06-01-2007 08:46 AM
06-04-2007 08:10 AM
Kenny K
Do you have a screen shot of the proper way to do this.
06-04-2007 08:57 AM
I attached a screenshot of what I was talking about.
The vi that I use to check for a new alarm or not is a modified vi of one that was included with the DSC examples. Take a look at the alarm and events section of the examples for more info.
Let me know if you get stuck.
06-05-2007 02:49 PM
Kenny,
Thanks for the help, I am receiving each new message via e-mail. The last problem is that my logic for determining a new alarm is not working. I get a e-mail as each event happens, when I get a new alarm it is sent out and when the alarm is acknowledged I get a message. How did you decipher between new and old alarms?
Thanks,
Scott
06-05-2007 03:12 PM
If you look at the DSC Alarms Demo.lvproj in the DSc examples, and then open DSC Alarms Event Structure Support.vi. Looking under the alarm and event notification event and that is helpful to accomplish what you are trying (and what I based my vi off of)
Basically, you are addiing information to an array and then if there is an alarm, check if it is in the array, if it is, dont send an email since it is an old alarm. If it is not in the list, add it to the list and then send out an email. Once the alarm has been cleared, remove it from the list.
In the example, they were using an array of clusters and then comparing it that way. I just used the alarm URL and then I was just comparing strings and added in the other information as I needed it. Both approches work, just depends on what is easier for you.