Imagineer Posted December 12, 2008 Report Share Posted December 12, 2008 Hello All, Am new to this forum with some expectation, and contribution! Currently expecting some reasonable answer or even better if I get to know how to find it? Am using LabVIEW 8.6 and just 1 month old to LabVIEW. Am developing software to automate test system and also generate a professional report. My approach here is to make the report very much auto configured as per GUI design (in short changes in GUI programatically gets reflected in Report format), so as to have easy configurability. To achieve this I should be programmatically be able to determine the type of control each cluster has and act accordingly. A cluster may have a set of controls and as well another cluster. I have access to “Controls[]” in property node of the cluster, but am unable to find a way to determine which type of control it is – Boolean (True/False), Text, Ring, Combolist, etc. If I get hold of this then I can put them in a for loop and take action on all controls present in the cluster depending on the type of control - Not all, there will be a default to take care of non-utilised controls and shall update as required! Am just guessing - will variant be a solution to this or am wrong? Also will it be possible to remove border visibility of a cluster in front panel, so I can have a structured program without getting reflected in front panel? Hope to get a response. Thanks and Regards, Tirthankar De Quote Link to comment
Francois Normandin Posted December 12, 2008 Report Share Posted December 12, 2008 QUOTE (Imagineer @ Dec 11 2008, 01:44 PM) Am just guessing - will variant be a solution to this or am wrong? Hi Tirthankar De, To determine the types of controls/indicators in a cluster, you can install the OpenG cluster tools (green icons) and use the variant properties to get it. I often use this type of architecture to browse through a cluster: Download VIPM and you'll be good to start. Quote Link to comment
LAVA 1.0 Content Posted December 12, 2008 Report Share Posted December 12, 2008 Cross-Post. See the Forum Guide lines on Cross-Posting Ton Quote Link to comment
Greg Hupp Posted December 12, 2008 Report Share Posted December 12, 2008 As a side: If you want to get creative...you could setup some dynamic dispatching type architecture and define your different clusters/types as object and then create the associated function. It helps clean things up in your program and allows for easy modification and addition of other/existing types and functions. Quote Link to comment
Imagineer Posted December 12, 2008 Author Report Share Posted December 12, 2008 A solution can be seen at Forums.ni The Link: http://forums.ni.com/ni/board/message?boar...=374075#M374075 Thanks for your support - normandinf, Ton!! Greg Hupp - Thanks for the suggestion, it would be nice if you could give an illustration ? Regards, Tirthankar De Quote Link to comment
Mark Balla Posted December 13, 2008 Report Share Posted December 13, 2008 QUOTE (Imagineer @ Dec 11 2008, 12:44 PM) I have access to “Controls[]” in property node of the cluster, but am unable to find a way to determine which type of control it is – Boolean (True/False), Text, Ring, Combolist, etc. If I get hold of this then I can put them in a for loop and take action on all controls present in the cluster depending on the type of control - Not all, there will be a default to take care of non-utilised controls and shall update as required!Am just guessing - will variant be a solution to this or am wrong? The easiest way to do this would be to use the Class name property of the control. shown below Download File:post-584-1229061599.vi I also have many ways to classify controls as variants let me know if you need more help. QUOTE (Imagineer @ Dec 11 2008, 12:44 PM) Also will it be possible to remove border visibility of a cluster in front panel, so I can have a structured program without getting reflected in front panel? To make a cluster border transparent Select the paintbrush tool Place it on the border of the cluster right click to bring up the color pallet. move the cursor to the T in the upper right corner then press the F key for (foreground) Quote Link to comment
Greg Hupp Posted December 16, 2008 Report Share Posted December 16, 2008 QUOTE (Imagineer @ Dec 11 2008, 05:25 PM) Greg Hupp - Thanks for the suggestion, it would be nice if you could give an illustration ? The "Event" VI shown is a dynamic dispatch VI and the object (cube) determines which of the children "Event" VI to run. There should also be an example in the examples installed with LV. http://lavag.org/old_files/monthly_12_2008/post-12023-1229380716.jpg' target="_blank"> 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.