02-23-2016 09:19 AM
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,
02-23-2016 09:27 AM
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
02-23-2016 09:29 AM - edited 02-23-2016 09:41 AM
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:
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> ---'
02-23-2016 09:45 AM
HI,
I have attached the VI for the ver 9.0. If any ideas let me know.
02-23-2016 09:47 AM
@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> ---'
02-23-2016 09:49 AM
Nope it dosn't work. It changes only for the first row and rest is the same.
02-23-2016 09:55 AM - edited 02-23-2016 09:59 AM
Sorry, wrong information
02-23-2016 09:58 AM
Hi,
Could please give some example programs that i can make it working as expected.
02-23-2016 10:15 AM
@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> ---'
02-23-2016 10:18 AM
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