12-04-2009 02:29 PM
12-04-2009 05:08 PM
12-04-2009 05:39 PM
Any time you are combining propery nodes with 'Unbundle By Name' it is bound to look a little hairy on the BD. The method is fundamentally sound and platform independent, so I would call it ugly, but not bad. You could do some minor tweaks to eliminate a couple math operations, but I would simply suggest writing a subVI or two to ease the pain. If you dig through the LV folder, they have a couple of subVIs that do most of the job, password protected since it probably looks a lot like yours and they too were embarassed.
12-04-2009 08:42 PM
12-05-2009 09:26 AM
You can hide the math, but not from the math. There are other properties available to get the size of the window, but getting to them requires more property nodes which is uglier than the math. You can make things slightly more compact by hiding the names in the property nodes, but in reality it is what it is. If that is the ugliest thing you've ever created, you're doing better than I am. You should see some of my scripting tools.
Want it to look nice, select it all, Create SubVI, then make a nice icon. Think of it as your little sausage factory, nice and tidy on the outside, but do you really want to see what goes on inside?