03-11-2011 01:23 PM
Hi all,
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.
Yik
Solved! Go to Solution.
03-11-2011 01:44 PM
Hi,
Why not use an array with LED's in them as an indicator? Green LED for True, Red LED for False?
03-11-2011 01:59 PM
Or calculate the percentage and feed that number into an indicator scaled from 0 to 100.
03-11-2011 01:59 PM - edited 03-11-2011 02:02 PM
XX
03-11-2011 02:05 PM - edited 03-11-2011 02:14 PM
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?
03-11-2011 03:39 PM
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.
Yik
03-11-2011 03:40 PM
I dont' want an array. If I have 100 points, I can't see a data easily in a glance.
03-11-2011 03:41 PM
I am wondering if I can somehow use the intensity chart.
03-11-2011 06:47 PM - edited 03-11-2011 06:51 PM
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.
03-11-2011 10:25 PM
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.