kmc Posted July 18, 2008 Report Share Posted July 18, 2008 HI, I am creating a table.I am taking the contents of table1,table 2,table 3 in an array.While displaying the result,The contents of the table (i.e)the way it looks will change. i.e if i keep 0=system colour(i.e header in the table) as grey 1=red 2=green i am attaching the program along with this...pls try to help me out with this in short pass should be in green fail in red header in table grey. pls help me out with this Quote Link to comment
Francois Normandin Posted July 18, 2008 Report Share Posted July 18, 2008 Use the ActiveCell property + CellBackgroundColor property. Check the help and you'll find a table of the expected results. Row, Column, Result –1, –2, Selects the headers of all columns. Quote Link to comment
kmc Posted July 18, 2008 Author Report Share Posted July 18, 2008 QUOTE (normandinf @ Jul 17 2008, 01:37 PM) Use the ActiveCell property + CellBackgroundColor property. Check the help and you'll find a table of the expected results. Row, Column, Result –1, –2, Selects the headers of all columns. Can you look at the file which i had attached along with this.I HAVE USED THE ACTIVE CELL PROPERTY AND CELL BACK GROUND COLOUR PROPERTY.PLEASE HAVE ALOOK AT THE ATTACHED FILE. THANKS kmc Quote Link to comment
kmc Posted July 18, 2008 Author Report Share Posted July 18, 2008 QUOTE (kmc @ Jul 17 2008, 02:03 PM) Can you look at the file which i had attached along with this.I HAVE USED THE ACTIVE CELL PROPERTY AND CELL BACK GROUND COLOUR PROPERTY.PLEASE HAVE ALOOK AT THE ATTACHED FILE.THANKS kmc I SEE MORE THAN 70 VIEWS WHY ISNT ANY ONE REPLYING....?? I THINK I HAVE WASTED TIME BY JOINING HERE...NO BODY REPLIES...! Quote Link to comment
Phillip Brooks Posted July 18, 2008 Report Share Posted July 18, 2008 QUOTE (kmc @ Jul 17 2008, 10:14 AM) I SEE MORE THAN 70 VIEWS WHY ISNT ANY ONE REPLYING....?? I THINK I HAVE WASTED TIME BY JOINING HERE...NO BODY REPLIES...! All caps is considered a form of shouting. Shouting doesn't inspire people to get involved. You have only waited one hour. There are currently 9280 members and also non-members. 70 reads is not a lot... Thanks for becoming a Premium Member, but this is not a service. Your membership supports the operation of the forums, but the contributors are all volunteers; we share our knowledge for free. I don't have LabVIEW 8.5 ( I'm using very old 7.0) or I would look at your code and try to help. Give it a little time and someone should help... Quote Link to comment
TobyD Posted July 18, 2008 Report Share Posted July 18, 2008 QUOTE (kmc @ Jul 17 2008, 07:14 AM) I SEE MORE THAN 70 VIEWS WHY ISNT ANY ONE REPLYING....?? I THINK I HAVE WASTED TIME BY JOINING HERE...NO BODY REPLIES...! There's no need to answer a question that has already been answered. Normandif gave you the answer. You are using the correct property nodes, but you never set the bgcolor for the column headers (see table below from the help files). You can also use the paint tool to change the column header color if it does not need to change at runtime. Row Column Result –20Selects all cells of the first column, including the column header.–2–2Selects all rows and columns, including column headers.–10Selects the header of the first column.–1–2Selects the headers of all columns. Quote Link to comment
Gary Rubin Posted July 18, 2008 Report Share Posted July 18, 2008 QUOTE (kmc @ Jul 17 2008, 10:14 AM) I SEE MORE THAN 70 VIEWS WHY ISNT ANY ONE REPLYING....?? I THINK I HAVE WASTED TIME BY JOINING HERE...NO BODY REPLIES...! Here's a reply. Nobody here on LAVA is obligated to reply. Everyone who does offer help is doing it out of the kindness of their hearts. Think of it as a favor they are doing for you. Would you want to do someone a favor if they were jumping up and down, screaming, and asking why you weren't ignoring your own work to help them? Quote Link to comment
kmc Posted July 18, 2008 Author Report Share Posted July 18, 2008 QUOTE (Gary Rubin @ Jul 17 2008, 03:45 PM) Here's a reply.Nobody here on LAVA is obligated to reply. Everyone who does offer help is doing it out of the kindness of their hearts. Think of it as a favor they are doing for you. Would you want to do someone a favor if they were jumping up and down, screaming, and asking why you weren't ignoring your own work to help them? I SINCERLY APOLOGISE TO EVERY ONE.I SHOULDNT HAVE DONE THIS.........I AM REALLY SORRY FOR SPEAKING LIKE THAT. QUOTE (Phillip Brooks @ Jul 17 2008, 03:28 PM) All caps is considered a form of shouting. Shouting doesn't inspire people to get involved. You have only waited one hour. There are currently 9280 members and also non-members. 70 reads is not a lot... Thanks for becoming a Premium Member, but this is not a service. Your membership supports the operation of the forums, but the contributors are all volunteers; we share our knowledge for free. I don't have LabVIEW 8.5 ( I'm using very old 7.0) or I would look at your code and try to help. Give it a little time and someone should help... i AM SORRY FOR SPEAKING LIKE THAT.This is the first time i am into lava.i really dont have any idea how it goes.I understand it is an obligation.i had posted a request a month back this is the link http://forums.lavag.org/help-needed-with-labview-t11141.html though i worked on it and got the result that i wanted.you could see that there are more than 375 views but none have replied.I thought they were just viewing the file and not replying. i accept it was my mistake.I deeply regret for speaking like that. thanks Ashwin Quote Link to comment
Francois Normandin Posted July 18, 2008 Report Share Posted July 18, 2008 As far as I'm concerned, I accept your apologies. :beer: a) I didn't open your VI because I thought your problem was clearly stated... That being said, I'll have a look at it now to see if I got my answer satisfactorily posted. b) A tip for future questions: I don't usually look at posts that contain "Help", "plz" (please), "Quick" or "Urgent". I might not be the only one... It's very often school homework questions and since I am working a full time job, I choose the topics I answer accordingly. EDIT: Quote Link to comment
Norm Kirchner Posted July 18, 2008 Report Share Posted July 18, 2008 QUOTE (kmc @ Jul 17 2008, 07:26 AM) I am creating a table.I am taking the contents of table1,table 2,table 3 in an array. While displaying the result,The contents of the table (i.e)the way it looks will change. i.e if i keep 0=system colour(i.e header in the table) as grey 1=red 2=green pass should be in green fail in red header in table grey. What you are asking for is not clear because I have run your program and it does exactly what you are asking for. It takes a 2d string array and makes all things Equal to PASS green and everything else red whilst keeping the header row/column the system color. So if your example already demonstrates what you want, what is your need? Quote Link to comment
kmc Posted July 18, 2008 Author Report Share Posted July 18, 2008 QUOTE (Norm Kirchner @ Jul 17 2008, 05:28 PM) What you are asking for is not clear because I have run your program and it does exactly what you are asking for.It takes a 2d string array and makes all things Equal to PASS green and everything else red whilst keeping the header row/column the system color. So if your example already demonstrates what you want, what is your need? Thanks a lot Norman.I appreciate this........! as far this was my research work which my professor had asked me to do... as far this program is concerned she expects me to do few things 1.this array is a text array..i.e Pass and Fail..what she wants me to do is to convert this text array into a numeric array and she wants me to display the colour out here for eg. 0-system colour 1-Flashing red 2- Green I havent worked on this before i am a beginner in labview.so trying to learn lot of things nw it would be really great if you could help me out with this.Can you send me what you had tried as an attachment. thanks a lot for patiently answering my questions regards kmc QUOTE (kmc @ Jul 17 2008, 07:28 PM) Thanks a lot Norman.I appreciate this........! as far this was my research work which my professor had asked me to do... as far this program is concerned she expects me to do few things 1.this array is a text array..i.e Pass and Fail..what she wants me to do is to convert this text array into a numeric array and she wants me to display the colour out here for eg. 0-system colour 1-Flashing red 2- Green I havent worked on this before i am a beginner in labview.so trying to learn lot of things nw it would be really great if you could help me out with this.Can you send me what you had tried as an attachment. thanks a lot for patiently answering my questions regards kmc NORMAN,I HAVE ATTACHED FEW THINGS ALONG WITH THIS..I HAVE DONE FEW THINGS RANDOMLY...AS I TOLD THE TEXT ARRAY IS CONVERTED TO NUMERIC ARRAY AND DO I NEED TO CHANGE TABLE1 AND TABLE2 ACCORDINGLY.HAD STARTED WITH IT. I THINK YOU WOULD BE EASILY ABLE TO FINISH IT.COULD YOU PLEASE CHECK THIS..? THANKS ASHWIN Quote Link to comment
LAVA 1.0 Content Posted July 18, 2008 Report Share Posted July 18, 2008 QUOTE (kmc @ Jul 17 2008, 03:03 PM) I HAVE USED THE ACTIVE CELL PROPERTY AND CELL BACK GROUND COLOUR PROPERTY.PLEASE HAVE ALOOK AT THE ATTACHED FILE.THANKS QUOTE (kmc @ Jul 17 2008, 04:14 PM) I SEE MORE THAN 70 VIEWS WHY ISNT ANY ONE REPLYING....?? I THINK I HAVE WASTED TIME BY JOINING HERE...NO BODY REPLIES...! QUOTE (Phillip Brooks @ Jul 17 2008, 04:28 PM) All caps is considered a form of shouting. Shouting doesn't inspire people to get involved. QUOTE (kmc @ Jul 17 2008, 04:53 PM) I SINCERLY APOLOGISE TO EVERY ONE.I SHOULDNT HAVE DONE THIS.........I AM REALLY SORRY FOR SPEAKING LIKE THAT. i AM SORRY FOR SPEAKING LIKE THAT. QUOTE (kmc @ Jul 17 2008, 09:22 PM) NORMAN,I HAVE ATTACHED FEW THINGS ALONG WITH THIS..I HAVE DONE FEW THINGS RANDOMLY...AS I TOLD THE TEXT ARRAY IS CONVERTED TO NUMERIC ARRAY AND DO I NEED TO CHANGE TABLE1 AND TABLE2 ACCORDINGLY.HAD STARTED WITH IT. I THINK YOU WOULD BE EASILY ABLE TO FINISH IT.COULD YOU PLEASE CHECK THIS..? THANKS ASHWIN Ashwin, check your keyboard, one of you shift-keys is stuck. Here's a generic solution. You could put this inside a sub-vi and use for several tables. http://lavag.org/old_files/monthly_07_2008/post-2399-1216323628.png' target="_blank"> Some tips: Don't use stacked sequences, they will bite you (I am aware this is a 'demo' VI). Ton Quote Link to comment
Norm Kirchner Posted July 18, 2008 Report Share Posted July 18, 2008 Thanks Ton, I wasn't even sure how to reply to that one..... since they sent almost the exact same example!! Quote Link to comment
kmc Posted July 19, 2008 Author Report Share Posted July 19, 2008 QUOTE (Norm Kirchner @ Jul 17 2008, 10:43 PM) Thanks Ton, I wasn't even sure how to reply to that one..... since they sent almost the exact same example!! Hey Norman,thanks a lot for replying to my msg.I had sent you the structure which i would like to have. basically what they were asking me is this 1.the program which was implemented was using a string array,they wanted me to convert to numeric array where the numeric array displays 0,1,2 if 0 is displayed------------it is a system colour 1 is displayed---it is red....it is fail 2 is displayed it is green.....it is pass at present the pass fail is displayed.. if we convert to numeric array instead of pass and fail it displays Numeric as 0,1,2....accordingly. how should i modify to get this result if 0 is displayed------------it is a system colour 1 is displayed---it is red....it is fail 2 is displayed it is green.....it is pass I am attaching the flow of program for better understanding. i am extremly sorry norman...i think i am bothering you a lot....it would be of great help if you could do this for me.. regards kmc QUOTE (Ton @ Jul 17 2008, 08:40 PM) Ashwin, check your keyboard, one of you shift-keys is stuck. Here's a generic solution. You could put this inside a sub-vi and use for several tables. Some tips: Don't use stacked sequences, they will bite you (I am aware this is a 'demo' VI). Ton Thanks a lot ton...! i am still trying...with a few things..i appreciate your help...!!! thanks kmc Quote Link to comment
Norm Kirchner Posted July 19, 2008 Report Share Posted July 19, 2008 You do the exact same thing you're doing now, just change the logic to compare the number and pick the right color accordingly Hope you get an A on the homework! Quote Link to comment
LAVA 1.0 Content Posted July 22, 2008 Report Share Posted July 22, 2008 QUOTE (Norm Kirchner @ Jul 18 2008, 11:01 PM) .....Hope you get an A on the homework! What brand of coffee are you using Norm. Must be superb. (although the mouse movements seem agitated). Ton Quote Link to comment
Norm Kirchner Posted July 22, 2008 Report Share Posted July 22, 2008 QUOTE (Ton @ Jul 21 2008, 12:57 AM) What brand of coffee are you using Norm. Must be superb. (although the mouse movements seem agitated). The mouse wasn't agitated, only the operator. It's my own special blend... but I think this little shit got into my stash!! http://lavag.org/old_files/monthly_07_2008/post-208-1216655248.jpg' target="_blank"> Quote Link to comment
crelf Posted July 22, 2008 Report Share Posted July 22, 2008 QUOTE (Norm Kirchner @ Jul 21 2008, 11:47 AM) It's my own special blend... but I think this little shit got into my stash!! How about a steaming hot cup of http://www.theage.com.au/news/epicure/great-coffee-just-dont-ask-where-it-came-from/2007/05/15/1178995148786.html' rel='nofollow' target="_blank">luwak coffee? Quote Link to comment
Phillip Brooks Posted July 22, 2008 Report Share Posted July 22, 2008 QUOTE (crelf @ Jul 21 2008, 11:58 AM) How about a steaming hot cup of luwak coffee? Sounds like it would go great with a side of durian muffins Quote Link to comment
crelf Posted July 22, 2008 Report Share Posted July 22, 2008 QUOTE (Phillip Brooks @ Jul 21 2008, 01:25 PM) Sounds like it would go great with a side of http://happyhomebaking.blogspot.com/2007/04/durian-muffins.html' rel='nofollow' target="_blank">durian muffins Deeeeeelicious! Quote Link to comment
Norm Kirchner Posted July 22, 2008 Report Share Posted July 22, 2008 I love tagging!!! Quote Link to comment
crelf Posted July 22, 2008 Report Share Posted July 22, 2008 QUOTE (Norm Kirchner @ Jul 21 2008, 01:57 PM) I love tagging!!! "Tasty turds"?!?! I love tagging too, but I'm not so sure I love you tagging Quote Link to comment
Norm Kirchner Posted July 22, 2008 Report Share Posted July 22, 2008 Don't worry, I'm sure Mike will block me soon Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.