LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change color of outgoing frame in string

Hi,

 

      The attachment contains an example vi to monitor frames. This is just an example. when i run the VI both outgoing and incoming frames color are the same, I  tried to make some work around but not working. I need to make the changes as attached pic. Please let me know how to do it?

 

Thanks,

Download All
0 Kudos
Message 1 of 16
(4,016 Views)

Sorry I don't have LabVIEW 2015 installed on my machine just now. So cannot comment on your code. But you can use this: http://digital.ni.com/public.nsf/allkb/6BD344ACA4DEE20A8625692700737E16


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 2 of 16
(3,996 Views)

The string datatype contains no information about text color. It's just a bunch of data about alphanumeric characters. That means this code does nothing but change the color of the indicator:

TextColor.PNG

 

aCa's solution is how you do it, but you'll have to mess around with your code a little bit because every time you update the value of the string, you will lose all of the colors previously present.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 3 of 16
(3,991 Views)

HI,

 

        I have attached the VI for the ver 9.0. If any ideas let me know.

0 Kudos
Message 4 of 16
(3,970 Views)

@jay0909 wrote:

HI,

 

        I have attached the VI for the ver 9.0. If any ideas let me know.


You've been given the solution. Try out the text selection code above and see if you can implement it to your satisfaction.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 5 of 16
(3,965 Views)

Nope it dosn't work. It changes only for the first row and rest is the same.

0 Kudos
Message 6 of 16
(3,960 Views)

Sorry, wrong information

0 Kudos
Message 7 of 16
(3,950 Views)

Hi,

 

        Could please give some example programs that i can make it working as expected. 

0 Kudos
Message 8 of 16
(3,946 Views)

@jay0909 wrote:

Hi,

 

        Could please give some example programs that i can make it working as expected. 


Try mixing the code above and your code to change the color of different rows. Experiment a little.

 

Like I said above, the colors get reset when you update the string, so you'll need to change the colors of multiple rows every time and it will take increasingly longer as your string gets longer.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 9 of 16
(3,921 Views)

Is it just for display? I would use something like tree (for table, etc  you need to keep all messages separately)

Methods Add item to end, Active cell font color

0 Kudos
Message 10 of 16
(3,913 Views)