ni.com is currently experiencing unexpected issues.
Some services may be unavailable at this time.
10-23-2008 12:49 PM
Hello all. I have been using Labeled 8.5 now for about 6 months. I absolutely love NI because of all the support and forum discussion that exists compared to other software makers I have used in the past.
Here is my concern. I have been giving the task of updating this old system and its software to LabVIEW. What I do is read about 100 alarm bits from a PLC. Each alarm will have a string attached describing what the alarm is in plain english. What I need to do using LabVIEW is then display numerous things. If no alarms are triggered, then nothing will be shown. If an alarm has been triggered (boolean), show the alarm code (string), the string describing it (string), if it is still triggered (boolean), has it been acknowledged (boolean), a date stamp, and a time stamp.
Now what I am stuck on. I have spent a few weeks trying to come up with a logical way of doing this other than having 100 boolean icons on my front panel. I have an ok grasps on LV but not a real indepth one (so many features for me). The time stamp will show when the alarm was first triggered and not change after that. When an alarm is triggered, you have the option to acknowledge it. If the alarm was then acknowledged and the alarm is no longer going off, it will disappear off the screen. Likewise it would stay on if acknowledged but the bit is still triggered.
My most recent idea was to build a table by combining all the strings together into an array and displaying it like that. If not triggered, it would pass blank through the array thus not showing anything. I then became stuck on though the acknowledge feature. I wanted to have it so that you could click the alarm boolean on the table and it would pop up a second VI asking if you wanted to acknowledge. Then I realized that since the boolean is going to be turned into a string to be displayed on the table, you couldn't just click on it to open up that specific boolean.
Basically I am asking if there is an easier way to do this other than what I have been thinking of? For what I know of LabVIEW software, I feel that it wasn't really built to do this tasks, but that won't help me get it done, lol. I want some form of a table to be on the frontpage, without a ton of clutter. Something that if no alarm is going off, it would leave the screen pretty blank actually other than maybe for table headers. Chaos of the code itself is not that big of a deal. Thanks for taking the time to read this posts either way.
Solved! Go to Solution.
10-23-2008 01:34 PM
Hi Drez,
An array of clusters, with the cluster having a string and a Boolean, will enable you to display the alarm string and provide a way for the user to click on the Boolean to acknowledge. Check the attached VI. Click on “Simulate Alarms” and then click on any of the “Acknowledge” button. It should display a dialog box.
I made an half attempt at simulating this, but you get the idea 🙂
10-23-2008 02:31 PM
Wow, that actually was a direction to take that I never thought of. I have no experience with event structures so it took me a while to figure out what exactly was going on with this. I think I am just going to then need to make a few more structures to get everything I want together. Also put numerous strings in the cluster for neatness reasons. Thanks so much though for giving me direction on this, I started to feel like I was drowning on this project.
I'll report in on my progress with this after I begin to play around with this.
10-23-2008 04:54 PM
Hi Drez,
Event structures are a fundamental part of LabVIEW. Since you do not have much experience with event structures and from your description the scope of your project seems large, you should be a little careful about how you code. LabVIEW is easy to begin with but it gets complicated if you want to have a nice working product. I would suggest you consider doing the LabVIEW courses.
Those are my two cents...
10-24-2008 10:19 AM
Drez,
Here are a couple of introductory Developer Zone articles on Event Structures:
These should be good to get you started with Event Structures. You may also find this KnowledgeBase useful as it contains three hour and six hour LabVIEW intro slides and is just an all around great resource if you would like to get a better grasp of LabVIEW