![]() |
|
|
Introduction
When you invoke this plugin on several controls it creates references for the controls, aligns them nicely and bundles them into a typedef cluster.
It also creates a subVI so that the cluster doesn't take room on the BD.
This can be useful if you want to do UI handling in subVIs.
You should note that the first thing it does is to ask you for a path to the typedef. This is because I couldn't find a way to drop the typedef or the subVI without saving it first.
Steps to Complete
To install this plugin, unzip the folder into the <LabVIEW>\resource\JKI\RCF\Plugins and restart the framework.
Additional Notes
License: BSD.
Version 1.0.0.
Saved in LabVIEW 8.6.
OK, I reposted it. It currently appears as QUEUED, so you should check back later to see if it's available.
Thanks a lot, it works very fine.
One thing: Is it possible to let the tool sort the elements in the typedef alphanummerical ? If i have a lot of elements like arg1...arg10 it would be very nice if they are appear in this order in the typedef.
Technically it is possible and even fairly simple. You can edit the VI yourself to do this - all you need to is take all the objects in the selection list and sort them by the label. This can be done by doing something like this:
In your case, the label will be the first element and the i value of the loop will be the second. You can then use the sorted i in the second loop to index the values out of the original array.
I can't say I personally want to do this, however. LabVIEW currently returns the selected elements in their Z-order, which I don't like, but I would probably like it if they returned them in the tabbing order.
Additional Notes
License: BSD.
Version 1.0.0.
Saved in LabVIEW 8.6.
================
I think maybe you saved these vis with LV9.0.
I am using LV8.6.1f1, so it dosen't work. ![]()
I customise the VI Get Control References[] from GObjects[].vi to sort the Array of Refrences alphanummerical by the label. But for me it would be better if you implement the feature so im not be obliged to store my version and implement it after evrey update. But its only an idea.
I uploaded an 8.6 version now from my 8.6 folder. I guess I edited the original using 9.0 a while back. I hope that the 9.0 version didn't have any changes (the version wasn't bumped, so I'm guessing it didn't).
schrotti, if you add a config option for sorting (a boolean will do for now) and send me the code, I will incorporate it into the official version. What you basically need to do is replace the string in the config cluster with a boolean named "sort?". The RCF will use the default options screen for editing it.
I can´t find the link to the download? Is it not visible to me?