10-08-2003 09:48 AM
10-08-2003 09:58 AM
10-09-2003 02:30 AM
10-09-2003 02:56 AM
10-09-2003 07:29 AM
02-24-2020 02:11 PM
Same issue as above, but the solution doesn't seem to work for me. it's multiple slides in an array..
Green is good (within range) Red is caution near the edge of the range.
Problem
if conditions are met they all change colours (flicker)
the idea is to only change the slide color of the ones out of tolerance.
Full Story
17 sensors with ~50mm of travel output is an array. I want the slide to turn green if between 5mm and 45mm and red. if it's outside those values. See example vi attached. I can't give you my original code as it would not run without the instruments present, but this should give you an idea.
Thanks
02-24-2020 02:27 PM - edited 02-24-2020 02:29 PM
So you want one slider in the array to be one color, and a different slider in the array to be a different color?
It can't be done. All elements in an array have to have the same properties. The only thing that can be different is the value.
You could try to create a cluster of sliders, and then color each slider independently.
PS: It makes a lot more sense to use In Range and Coerce rather than separate comparisons. You can use scalar constants rather than arrays of the same constant.
02-25-2020 10:58 AM
Try this. The array element is a cluster containing a slider (in front) and a color box (in back of the slider).
The slider fill option is set to Fill Above and the background of the slider is set to transparent.
Also, the slider has been customized to have 4 opaque flat boxes around it (to hide the color box everywhere except at the slider).