‎11-17-2009 04:45 PM
Hey Mark,
Thanks for the help. Let me also preface my post by saying I am not getting angry. With that out of the way, the VI you attached is not what I'm trying to accomplish. The only way I can describe how I would like the "Clear Alarm" button to function would be with my previous post. In the VI you attached, the button toggles between two different string displays. I would simply like to clear the window and allow more alarm messages to come through, I am not interested in toggling between alarm messages and an empty display window.
Thanks again guys I really do appreciate it and I'm sorry if this is frustrating, I'm very new to Labview and I'm doing the best that I can to describe my issue.
‎11-17-2009 05:09 PM
OK, I understand what you want. What you need to do is to keep your Alarm message in a shift register. You would also need to have some type of status message that would indicate if any alarms are present. If an alarm is present then write your alarm string to the display. Only update it when there is a change is alarm status. If you hit the clear alarm button then write an empty string to the control as well as the shift register. You should use value of the shift register to update the display, not your alarm string that you generate every iteration. Again, only change the display if there was a change in which alarms were active or if the user cleared the list. I don't have time to change the code.
I would also take a serious look at your code. It is not very clean and not very easy to read. As suggested early get rid of the useless select states. They will always return the value of the input to the select. If the input is true a true comes out, if false then a false comes out. Try to avoid massively large block diagrams. A good rule of thumb is that it should fit on single monitor. Needing to scroll the block diagram to see everything makes it hard to understand and maintain.
‎11-17-2009 07:40 PM
So you want to maintain a history of alarms? If so, why didn't you ever say so.
If you get an alarm it shows up.
If the alarm goes away on its own, do you want it to continue to show until the user clears it? (In which case you need a shift register like Mark said.) If you want the message to clear itself when the alarm goes away, then the code exactly as you have it now does that.
If the alarm continues to exist, but the user clears the window, what do you want to have shown, the fact the alarm still exists, or nothing?
‎11-18-2009 04:25 PM
‎11-18-2009 04:48 PM