01-20-2016 12:05 PM
Hi Everyone,
I'm trying to create a VI that displays status on boolean indicators as texts and color display. I'm using property nodes to do this but it's not working as it should. When I run the VI, a couple of the boolean indicators end up displaying the wrong text even though the correct text was wired to property node. See attached screenshot and code.
Thanks.
Solved! Go to Solution.
01-20-2016 12:23 PM
How should it work?
01-20-2016 12:28 PM
Hi SolPS,
Please see this knowledgebase: http://digital.ni.com/public.nsf/allkb/79BB76A653912B7D862569AB00619F87
It's old, but still applies to modern versions of LV.
01-20-2016 12:28 PM
Why have you chosen to over-complicate your life?
You can just create your cluster once with False/True Boolean text, red for false, green for true. Then just convert your boolean array to a 9 boolean elements cluster.
01-20-2016 12:30 PM - edited 01-20-2016 12:31 PM
I found some of your labels have a space on either side of your text. Since that does not match, you will run the "Default" case.
By the way, you should make a seperate default case to help you in this kind of error tracking.
01-20-2016 12:36 PM - edited 01-20-2016 12:36 PM
Check your control labels.
SERVO POWER FAILURE has a trailing space.
WOBBLE DISABLED has a trailing space.
SYSTEM NOT OK has a leading space.
X-POSITION FAULT has a trailing space.
All of these trigger the default case in the case structure. It looks like Servo Power Failure is working how you want it, but that's just because the default case happens to be the same as the Servo Power Failure Case. I recommend having your default case show a dialog popup with something like "Control label not found".
Edit: Darn, too late!
01-20-2016 12:47 PM
Hi gregoryj,
How can you determine that there are trailing and leading spaces before editing the controls?
Thanks
01-20-2016 12:50 PM
You can create an indicator and right click "display slash codes" like crossrulz did. I just clicked around on the ones that had "servo power" in the text and looked for the typos
01-20-2016 01:36 PM
... or you could just feed it through trim whitepsace before wiring to the case structure. I would also set the case structure to "case insensitive match".