LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Arrays of objects?

Hi all!

Is it possible to create an array of for instance radiobuttons in LV? I
currently have about 100 objects and I find extremely tedious to wire
them all by hand. Can this be done throught the use of some sort of
loop, like a normal programming language? Please help!

Regards

Stefan Eriksson
0 Kudos
Message 1 of 3
(3,451 Views)
Yep, create an array 'container' on your front panel then drop in whatever
control you like.
If you wire the array teminal straight into a 'for loop' on the diagram it
will exectute the loop as many times as elements in the array.

Stefan Eriksson wrote in message <37A94E77.BB747A67@home.se>...
>Hi all!
>
>Is it possible to create an array of for instance radiobuttons in LV? I
>currently have about 100 objects and I find extremely tedious to wire
>them all by hand. Can this be done throught the use of some sort of
>loop, like a normal programming language? Please help!
>
>Regards
>
>Stefan Eriksson
>
0 Kudos
Message 2 of 3
(3,451 Views)
Stefan Eriksson wrote:

> Hi all!
>
> Is it possible to create an array of for instance radiobuttons in LV? I
> currently have about 100 objects and I find extremely tedious to wire
> them all by hand. Can this be done throught the use of some sort of
> loop, like a normal programming language? Please help!
>

You can make an array of any Labview datatype, except an array.
To answer you question yes you can make an array of radio buttons.
This is basically an array of Booleans. You can use loop functions to
access each individual element like you would any other array type.

Kevin Kent
0 Kudos
Message 3 of 3
(3,451 Views)