LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to auto create a large number of any button without manually copying and pasting them? (using loops?)

Hi please help me if you know thanks

0 Kudos
Message 1 of 8
(3,829 Views)

What are you doing that means you want to create a crazy UI with a bunch of buttons?

Loops won't work.  You'd need scripting or to take a look at the architecture to find a better solution.

0 Kudos
Message 2 of 8
(3,818 Views)

Create an array of buttons (1D or 2D) and resize to the desired number of elements.

 

(it is not sufficient to create buttons using scripting, you also need to connect them to the code logic. Using arrays will greatly simplify the code and make it scalable.)

Message 4 of 8
(3,797 Views)

Hi natasftw, sorry for the late reply.

Thanks for replying!

Haha yeah I think that's what i'm supposed to do.

Ok i see. Thanks again for your help!

0 Kudos
Message 5 of 8
(3,664 Views)

Hi amarbir444, sorry for the late reply.

Thanks for replying!

Ok thanks!

0 Kudos
Message 6 of 8
(3,662 Views)

Hi altenbach, sorry for the late reply.

Thanks for replying!

Ok I see, do you happen to know of a video tutorial on how to do this? Thanks again for your help!

0 Kudos
Message 7 of 8
(3,650 Views)

If you need a video tutorial to learn how to create an array of boolean controls, I strongly recommend you to take the online training Core 1:

 

http://sine.ni.com/tacs/app/overview/p/ap/of/lang/en/pg/1/sn/n24:12725/id/1582/

http://ni.com/myni/self-paced-training

0 Kudos
Message 8 of 8
(3,635 Views)