09-07-2008 09:16 AM
Hello,
My question might be a bit confusing.
I would like to build a VI that opens a subVI, and in that subVI will appear the number of numeric controls as I have designated in my VI. I would appreciate any help on the matter.
Thanks,
Gaby
09-07-2008 09:33 AM
Hi Gaby,
so you want to count all your numeric controls and show the number of them in your subvi??. Is it every time the same vi, from which you want to count the number of numeric controls?
Mike
09-07-2008 10:36 AM
Hi Mike,
I probably did not make my self clear (my fault).
I'll try and give an example.
Lets say I want to execute a for loop. The parameters that control loop are set in a subVI that pops up before the loop is executed (start, end and interval). Now I would like to run this for loop n times (consecutively) and each time with different parameters and I want the parameters number of sets of the numeric control that will appear in the front panel will be defined by n. I hope I made myself clearer this time.
Thanks,
Gaby
09-07-2008 11:17 AM
gshemer wrote:Lets say I want to execute a for loop. The parameters that control loop are set in a subVI that pops up before the loop is executed (start, end and interval). Now I would like to run this for loop n times (consecutively) and each time with different parameters and I want the parameters number of sets of the numeric control that will appear in the front panel will be defined by n. I hope I made myself clearer this time.
You know, it's still not really clear. It always helps if you could attach a small image or even VI that illustrates your question. Whre does "n" come from? Is it typically a small number of can it be in the millions?
If you want to show a variable amount of similar controls, it is always easiest to use an array of controls. Within the limits of the screen, you can even determine how many elements show.
In your case, you could use a 2D array with 3 elements per row (start, end, interval) or you could use 1D array of clusters, each element containing a set of these three variables.