08-20-2024 09:44 AM
I have an array of accumulated mean value, i want to change the mean value that over 0.5 to red and below 0.5 to black, but I still the array will be in same order as before the comparison happen. Need anyone help me on this and thank you in advance.
e.g :
Segment 1, Mean 0.3(black)
Segment 2, Mean 0.6(red)
Segment 3, Mean 0.7(red)
Segment 4, Mean 0.2(black)
.
.
08-20-2024 10:36 AM
We don't debug pictures, so please attach your VI (do a "save for previous", 2020 or below if you use a newer version).
In general all elements of an array share the same properties, including color. You could show your values in a table, for example.
08-21-2024 08:05 AM
Font characteristics (including color) are settable on separate groups of characters.
Note that you must set colors after the string value is sent to the indicator. So you've got some extra coding to do in order to figure out the Start & End positions of all the differently colored substrings.
08-21-2024 09:26 AM - edited 08-22-2024 08:43 AM
You would make you life significantly easier by using special indicator. For example a listbox would work perfectly.
Maintaining start and end position of each virtual field in one very long string is just herding cats. It can be done, but it will be much more complicated and there will be many more places for bugs to hide.
Here's one possibility:
And if you just want the number to be red, you could use a multicolumn listbox or a table instead.
08-21-2024 10:16 AM
@akimkhal wrote:
On a side note, there are some significant flaws, at least from the visible part of the truncated picture.
We can probably give more specific advice of you would attach the actual VI.