09-18-2017 08:02 PM
Hi All,
I can't figure out what I am missing here:
I have a state machine with idle > test > report > idle flow. I need to set the front panel string as blank(empty text + gray) when the start button is pressed in the idle state and either (pass + green) or (Fail + red) in the report state. For some reason assigning a color to "text.BGColor" doesn't work, see attachments (sorry can't post the code, it's work). What am I doing wrong?
Thanks
HN
09-18-2017 09:15 PM
@H7N wrote:
What am I doing wrong?
You are wiring into the wrong thing. You need to wire into the Text.TextColors Property. (sorry can't post the code, it's work).
Bob Schor
09-18-2017 09:17 PM
09-18-2017 10:46 PM - edited 09-18-2017 10:47 PM
Bob,
Maybe I wasn't clear enough, for the Fail case I need to display "fail" and the whole indicator to turn red. In the same way for the Pass, I need the to display "pass" and the whole indicator to turn green. What confuses me is that the code works outside of my state machine. See the test vi attached
09-18-2017 11:02 PM
@ben64 wrote:
H7N a écrit :
What am I doing wrong?
Not posting enough code for anybody to be able to help you efficiently. The only thing that can be said is that the false case is probably not executed.
Ben64
I may have confused you by mixing the screenshots: All cases are executed correctly and I get the right text in my indicator: pass, fail and empty(for control). But the indicator colors don't change correctly, for example for the pass case, instead of the whole indicator turning green, only a narrow border turns green. The behavior is the same for all three, only that narrow border changes to the color that I write to the text.BGColor. See below screen shots:
09-19-2017 01:41 AM - edited 09-19-2017 01:42 AM
Hi H7N,
as Bob already told you: you need to choose the correct property:
In your example VI I switched the properties to show "long property names". The left property will NOT work as intended, while the right one will… (Using short names both will show as "Text.BGColor".)
09-19-2017 08:58 AM
To be fair, when you place a property node for a string control, there are a bewildering amount of apparent text color properties to choose from, some with very similar names.
09-19-2017 09:01 AM
@GerdW wrote:
Hi H7N,
as Bob already told you: you need to choose the correct property:
In your example VI I switched the properties to show "long property names". The left property will NOT work as intended, while the right one will… (Using short names both will show as "Text.BGColor".)
This exactly illustrates my last post. it would've helped immensely if they named the one on the left something like: Text.box.Colors:BG Color. No ambiguity there.