03-04-2013 04:50 AM
Hi All,
I have a long list of shared vars and I want to select only the shared vars with active alarm notification. Is this possible?
Thanks
03-05-2013 07:22 AM
Hello Poema,
Can you explain a bit more about what you mean with the "select" part?
Where are you currently stuck?
Programmatically you can for sure determine which ones have alarm notifications and which ones don't.
(see attachment)
Please don't mind the undocumented code.
I just wanted to show you quickly how you could check this.
The attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense
03-05-2013 08:43 AM
Hi ThiCop,
Thanks for your reaction. Please send the example code in LV 2011.
I enabled notification for a big list of shared vars.
In the program the user can select one of them and disable notification for this one.
For the moment I have to keep track of the disabled vars.
Is there a property (or something else) of the shared vars that gives me the this information (notification on or off)
thanks,
03-05-2013 09:46 AM
Hello Poema,
To do that you can just use a simple property node and wire it to the reference:
03-05-2013 11:21 AM
Hi,
That is something else, as you can see on the pictures.
Array 3 is after all notifications are activated and array 4 is after all notifications are cleared. (the result is identical)
thanks
03-06-2013 03:28 AM
Hello poema,
I tested it (multiple times) and it did do what I described.
It showed the current status (enabled or disabled).
So it should also work at your side.
Can you share your code with me?
How do you currently clear the notifications?
Do you do this manually or programmatically?
If you do it manually, do you then redeploy your library?
03-07-2013 02:58 AM
Hi,
Thanks again for the effort.
Attached you will find an example. It is a standard labview example with some modifications.
Starting the program with the notifications on or off does not change anything in the arrays.
In my program I use the same alarm vi's as in the example
greetings
03-07-2013 08:36 AM - edited 03-07-2013 08:37 AM
Hello Poema,
I think there might be a confusion between 2 different concepts:
- At one side you have your user event notifications (for your specified alarms)
- At the other side you have your actual alarms
Are you familiar with user events and event structures?
What you are doing in your code is disabling the notifications. (the communication between the alarms and the event structure)
However, you are not disabling the actual alarms. These will still occur, but will not be communicated to your event structure
For that you should use the property node and write to the "Alarming.AlarmsEnabled" property.
Can you follow this explanation?
03-07-2013 10:31 AM
Hi,
That's exactly what I meant with 'It is something else', so I can return to the original question.
"Is there a property (or something else) of the shared vars that gives me this information (notification on or off)"
"I want to select (or create a list) only the shared vars with active alarm notification. "
The purpose is to known the vars wherefrom I can expect a reaction via the event case and on the other hand to known the vars that are active but do not have a notification via the event case.
thanks,
03-08-2013 03:49 AM
Hello Poema,
- To read a property you should read from the property node as in the picture above.
This will allow you to see the current setting
- To change the logging settings you have to write to the property node.
This will allow you to change the current setting.
Have you tried this already?