12-14-2008 04:21 AM
Hello,
I would like to generate controls or indicators on a VI. For example I have a .vi from which I set the number of controls and indicators and when I hit a buton another vi opens with the number of controls and indicators that I defined previously in the first VI.
How can I do that, beside "hide" property from the front panel. I would like to know if there is a simple way, ofcourse I want to use as less memory as I can.
Thank you,
Stefan
12-14-2008 05:30 AM
Hi Stefan,
in LV you cannot create new controls/indicators at runtime. Point.
You can:
- use arrays and change the number of visible elements
- use the "visible" property of previously created controls (as already mentioned in your question)
- use scripting features of LV (only available to selected users 🙂
What's the purpose of this request?
Just create a new vi with some predefined controls on the front panel? Then you can make your own entries in the functions palette to provide (at least) similar functionality...
12-14-2008 06:21 AM
Ok, I knew that I can't create new controls when running but I wanted to be sure, now I know what I have to do.
Thanks a lot,
This forum is great, wish you the best.