01-11-2019 09:26 AM
New to LabVIEW so apologize in advance if I am asking a basic question. I'm trying to show the active path in a signal flow diagram I created on the FP by using color. So for instance, if I have a switch (represented by a Boolean radio button control) and it is set to 1 (true) them I would like to color the line "green" for that switch path while the other path remains "black". If I set the switch to 0 (false), I would like to do the reverse.
Is there a way to conditionally color a line based on a Boolean value?
01-11-2019 10:01 AM
Property nodes.
If you attach a VI, we could poke at it and give an example of how to do it.
01-11-2019 10:14 AM
Sample vi attached. Any suggestions very welcome.
01-11-2019 10:14 AM
@RavensFan wrote:
Property nodes.
If you attach a VI, we could poke at it and give an example of how to do it.
Yes FP >>> decorations returns an array of all decorations and you can index out the one you want to change.
Ben
01-11-2019 10:18 AM
@chughes119 wrote:
New to LabVIEW so apologize in advance if I am asking a basic question. I'm trying to show the active path in a signal flow diagram I created on the FP by using color. So for instance, if I have a switch (represented by a Boolean radio button control) and it is set to 1 (true) them I would like to color the line "green" for that switch path while the other path remains "black". If I set the switch to 0 (false), I would like to do the reverse.
Is there a way to conditionally color a line based on a Boolean value?
I recommend a Multi-Segment Pipe. Unfortunately it's not on the palette. Here's a VI with one for you to play with. You can change the colors, size, shape, add/remove segments.