> I suppose that my explanation is not very good! > I want to build something similar to the vi "Build an array" . It is a > vi that has every number of inputs, this example is to explain the > idea. I dont know if it is possible doing something similar, because > depending on the number of inputs the block diagram will change! >
VIs have fixed number of inputs, and as you mentioned, they allow for unlimited amounts of data through arrays. If you want a growable node like build array, there are a couple options. In LV7 and above, there is a subVI style that is bigger, with the blue border, and it allows for textual terminals at the bottom. These are much bigger, and it is more obvious what someone is wiring to, but they also take more space, and I'm not sure they are what you want, but probably worth looking at. Second option is to really use a build array. You can either teach your users to put a build array in front of the subVI and build an array, or you can build a merge VI. A merge VI is how the 3D graph and the polar plot drop with subVIs already wired to other objects. It is a regular VI whose item in the palettes has the Merge Option turned on. In this case, instead of the subVI being dropped, its contents are merged into the user's diagram. You could build your subVI using arrays, then build a merge subVI for the palettes. In the merge VI, place a build array with whatever you want as the default size. Then add the merge VI to the palettes and set the option. When dropped, you will get the build array's default size already wired to the other subVI. Greg McKaskle
