LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setup Alarming Dynamically - trouble generating alarms

Solved!
Go to solution

Can someone please tell me why this code won't generate alarms.  I need to dynamically create the library/shared variables and configure alarming programmatically.  I can't seem to get it to work.  Is there something I am missing?

0 Kudos
Message 1 of 8
(3,274 Views)

Still can't generate alarms.

0 Kudos
Message 2 of 8
(3,255 Views)

Hi Mattyk, 

What version of DSC are you using?  Can you try using the "configure alarming" vi? 

More information on this VI, and how to programatically confiuring alarming can be found here:

http://zone.ni.com/reference/en-XX/help/371618F-01/lvdsc/dsc_conf_alarm/#parent

 

Thanks, 

Dave T.

National Instruments
FlexRIO & R-Series Product Support Engineer
0 Kudos
Message 3 of 8
(3,247 Views)

I have tried this "configure alarming.vi" without success.  I had this in there before I tried a property node.  I've tried everything I can think of.  I wrote this VI for figuring out how to setup alarming.  All I need is a wokring example of some kind.  I can't even get this working:

 

http://decibel.ni.com/content/docs/DOC-14479

 

using my shared variable array which I dynamically created.

 

 

0 Kudos
Message 4 of 8
(3,244 Views)

This code is identical to:

 

http://decibel.ni.com/content/docs/DOC-14479

 

Except for creating shared variables dynamically and deploying the library before and after shared varaible configuration.  Also I had to enable all alarms before I set them.  I'm not sure why it doen't work.  It doen't make sense.

0 Kudos
Message 5 of 8
(3,232 Views)
Solution
Accepted by topic author Mattjk

Ah, I was monitoring the wrong shared variable than I was writing to.  This example now works.

 

Thanks NI Engineer (I forget your name)

Matt

0 Kudos
Message 6 of 8
(3,229 Views)

please DAVID ,

 

I have problems with the table of alarms and events in the executable.
In the tab program (user ack) I get my username I recognize alarms.
Run on the tab (user ack) I get nobody, I acknowledge the alarm

ALARMS.png

0 Kudos
Message 7 of 8
(3,192 Views)

Hi Diego,

 

I'm not exactly sure what the problem you're referencing is.  From what I can tell, the problem seems to be that in an exe file, the user name is printed, but in the development environment it is not?  I'd like to clarify this before diving further in.

 

Regards,

 

-Dave C

Applications Engineer
National Instruments
0 Kudos
Message 8 of 8
(3,175 Views)