LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

unbuild an array

Solved!
Go to solution

Ok guys, maybe my question is awkward (like my english..) forget this 2D array..
Does it possible with LV, to create an function (or a sub VI), that offers the possibility to you to choose number of input/output, by drag* the top (or bottom) of the icon of this function.
* I mean, you place mouse on the bottom of icone (blue square ) and press left button, and while you keep press left button and move mouse down, the icon picture change and some new (input/output) appear.
Like them;

04.png

0 Kudos
Message 11 of 12
(858 Views)
Solution
Accepted by AFLAMENT

@AFLAMENT wrote:


Does it possible with LV, to create an function (or a sub VI), that offers the possibility to you to choose number of input/output, by drag* the top (or bottom) of the icon of this function.


Yes, but.

 

Here are some options:

 

  1. You can right click a subVI and uncheck the icon view. This makes it look like an express VI and allows you to expand it. This does NOT let you add inputs dynamically, so it's probably not what you want.
  2. You can probably create an express VI where you double click it and set the number of inputs in the configuration dialog. You will then need to write scripting code to generate the appropriate number of inputs. This will also be limited to 28 I/O points, because it goes through the connector pane.
  3. You can write an XNode. This will allow you to do exactly what you want, but it's more difficult and it's NOT officially supported. You can search for XNodes here and in the LAVA forums to find out more, but keep in mind that this is not released and there are some good reasons why. XNodes are relatively advanced and if you needed help being pointed to Index Array, it's likely this is not for you.

___________________
Try to take over the world!
Message 12 of 12
(850 Views)