From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Better way to keep color in an updated string indicator

Solved!
Go to solution

I wanted to add a feature to my RS232 swiss armay knife application.

Using one string indicator and show the written and read strings in different colors.

colordemo.png

 

The attached program work, however since every update of string results in ONE color the solution found need an rewrite of all colors after each update which results in flicker 😞

and if you log some more data in the indicator it's a bad solution .

One improvement would be to only store blocks of same color ....

Someone with a better idea or solution?

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 1 of 7
(2,810 Views)

Defer FP refresh seems to work.

 

Regards Florian

Message 2 of 7
(2,802 Views)

How about using a List Box instead of string control..  and having the sent and read text in different rows..& obviously different colours..

0 Kudos
Message 3 of 7
(2,801 Views)

@Florian.Ludwig wrote:

Defer FP refresh seems to work.

 

Regards Florian


 

My first thought as well.

 

I did mine to emulate a protocol analyzer where send and recieve are on different lines and also wanted to flag protocol errors so I used a picture control.

 

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 7
(2,787 Views)
Solution
Accepted by topic author Henrik_Volkers

Use these to write strings to a picture control.

Download All
Message 5 of 7
(2,770 Views)

Ben & pcardinale

 

Thank you 🙂  

Nice solution, very flexible 

 

I now have to decide which one to choose as solution ...  

OK, the vis saved me a lot of work and thinking 😉

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 6 of 7
(2,743 Views)

@Henrik Volkers wrote:

Ben & pcardinale

 

Thank you 🙂  

Nice solution, very flexible 

 

I now have to decide which one to choose as solution ...  

OK, the vis saved me a lot of work and thinking 😉

 


 

Agreed.

 

My task here is inspiration.

 

Pcardinale earned the solution with perspiration.

 

Smiley Very Happy

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 7 of 7
(2,729 Views)