LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unexpected application error

Peachy,

  Format Alarm Data is an example VI that comes with DSC.  All it does is draw an array of alarm clusters on a multi-column list box.  You can specify which columns, and in which order you want alarms displayed.  You can also specify different colors for different alarm areas using that VI.  The reference input on this VI is a reference to any multi-column list box.

  Each alarm instance also has an associated reference with it.  The event structure VI example I posted uses that reference to determine if the alarm is already displayed in the alarm list.  It then uses that information to determine what to do with the latest alarm event.  You can also use the alarm reference to ack the alarm programmatically if you wish.

  The main difference between my code and your code is that you're reading the alarms using Read Alarms VI every time an alarm event is fired.  This is relatively processor intensive.  The DSC example keeps an internal memory of which alarms have been fired so it doesn't need to make this call.  Your code should work just fine too, it's just a different way of getting the same information.

Best Regards,
Nick F

~~
0 Kudos
Message 21 of 21
(803 Views)