I have an array of pass and fail, and I want to make a graphical indicator to represent that array. Is that a bar indicator that would take an array of pass/fail and show them as green and red on the bar. The color on the bar should be continous. I just want an indicator that would generally tell me the % of fail in real time.
Solved! Go to Solution.
Why not use an array with LED's in them as an indicator? Green LED for True, Red LED for False?
Are you just looking for an Indicator or Control with obvious Pass/Fail appearance, like this, that you can put in an array?
Or bars that update as the rusults come in, like this?
Or like this?
Hi Broken Arrow,
It is like the 3rd option, but the red will scatter within the bar. For example. Let say that I have 1000 points, and points 1 to 100 and 300 to 400 failed. The location corresponding to point 1 to 100 and point 300 to 400 will be red, but the rest of the bar will be green.
Not only do I want to know the % pass/fail, I want to know the generally what points are failing.
I dont' want an array. If I have 100 points, I can't see a data easily in a glance.
I am wondering if I can somehow use the intensity chart.
What I have shown is the Sorted result of a scattered array of pass/fail.
you said: >>> If I have 100 points, I can't see a data easily in a glance. Why not? 100 points can take up just a few inches on the screen.
I don't have LabVIEW right now, but it's easy to do. Make a Classic flat button into an indicator. Color the false condition green (pass) and true red (fail) (or inverse of that logic if you wish). Make the indicator skinny (a thin tall rectangle) and put it into an array. Size the array to the amount of expected data. Then just feed your pass/fail data to that array.
So you want to have bands of red and green throughout?
Something that kind of looks like the bar of different colors that show you the progress of a disk defrag in Windows?
I would recommend using a picture control and within that draw filled rectangles the height of the indicator, and left and width properties that match the locations where you want the bands to appear.