peteski Posted November 15, 2006 Report Share Posted November 15, 2006 Folks, Here is a request I had recently, and I wanted to inquire if anyone here could lead me to a more elegant way to implement this. I have the need to change the color of an individual display in a cluster based on whether it is within limits or not. This was my recent "quick and dirty" solution. What I really wanted to do is to try to pass a reference of the whole cluster to the subvi instead and parse at the subvi level, but I couldn't seem to get down to the individual background colors of the indicators in the cluster. The approach I came up with works, and I'm willing to stick with it if I have to, but feel there ought to be a better way. I'd be happy if somebody showed me how to "gracefully" get from the cluster reference down to an individual indicator's "NumText.BGColor", and I could work out the rest. Better yet, If someone pointed me to where in the myriad of LabVIEW manuals such information might be, I'd be quite excited to go there and RTFM!! BTW, This is LabVIEW 7.1.1, and for this project I am NOT going to 8.XX. Well, at least that is what I say for now... Thanks in advance! -Pete Liiva Download File:post-2931-1163618527.llb Quote Link to comment
Grampa_of_Oliva_n_Eden Posted November 15, 2006 Report Share Posted November 15, 2006 Have fun!Ben Quote Link to comment
peteski Posted November 16, 2006 Author Report Share Posted November 16, 2006 Have fun!Ben Woo Hoo!!! Thanks Ben!! BTW, is there a PDF where all this is mapped out? Something "text" searchable or something like that? -Pete Liiva Quote Link to comment
Ton Plomp Posted November 16, 2006 Report Share Posted November 16, 2006 Well if you have LV 8.x you have the property browser/searcher (ctrl-shift-B on windows) This is searchable per structure so you could have found it there. What I normally do is just browse the properties of the structure I want to change, be aware that in the case of clusters you need to get the clustere elements (like Ben showed), in the case of arrays you need to the element type, but be aware that anything you do on the element type will infect the whole array. Ton Quote Link to comment
jaegen Posted November 16, 2006 Report Share Posted November 16, 2006 ...BTW, is there a PDF where all this is mapped out? Something "text" searchable or something like that? ... I believe this is exactly what you're looking for. Jaegen Quote Link to comment
Grampa_of_Oliva_n_Eden Posted November 16, 2006 Report Share Posted November 16, 2006 I believe I learned that technique from a Jean-Pierre Drolet posting ( see my posting in the "Becoming an Expert" thread :thumbup: ). Ben Quote Link to comment
peteski Posted November 16, 2006 Author Report Share Posted November 16, 2006 be aware that in the case of clusters you need to get the clustere elements (like Ben showed), in the case of arrays you need to the element type, but be aware that anything you do on the element type will infect the whole array. Thanks Ton, I was aware of this, which is why I went to doing the cluster thing over the array in the first place. Thanks everybody, I'll be putting this to use in my next "release". -Pete Liiva 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.