LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

expandable vi

Is there a way to make a VI icon such that I can drag the actual icon to create discrete inputs similar to the Index Array VI?
Or am I stuck cluster building and passing that in?
0 Kudos
Message 1 of 9
(5,785 Views)
No.
Yes.
Sorry. Smiley Sad

If you wish you can suggest it in the Product Suggestion Center.


Message Edited by smercurio_fc on 01-29-2008 03:27 PM
0 Kudos
Message 2 of 9
(5,775 Views)

WillD,

I am afraid that smercurio is correct. They only way to do it would be to build a cluster and passing the inputs in. Unfortunately, there is no way to drag a VI out and add additional inputs. However, it is definitely an idea worth considering for future versions of LabVIEW. I would suggest you give your feedback to the product feedback center under ni.com so that it can be looked into. Thanks for the idea!

 

 

Carla

National Instruments
Applications Engineer
0 Kudos
Message 3 of 9
(5,750 Views)

As a contributor to LAVA* I am not allowed to use them but you could build your own Express VI (which would be more work than you are tring to save Smiley Sad ) which do allow you to re-size their inputs.

Ben

* I drive a car with a bumper sticker that reads "LAVA No Express VIs required."



Message Edited by Ben on 01-30-2008 02:27 PM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 9
(5,727 Views)


Ben wrote:

* I drive a car with a bumper sticker that reads "LAVA No Express VIs required."



Do you really?  If so, I'd like to see a picture of that!  That would be one where 99.99% of the people following you would say "Huh?  What?" Smiley Very Happy
0 Kudos
Message 5 of 9
(5,714 Views)


WillD wrote:
Is there a way to make a VI icon such that I can drag the actual icon to create discrete inputs similar to the Index Array VI?
Or am I stuck cluster building and passing that in?

You are talking about clusters and arrays, but there is a significant difference. You definitely don't want to pass in a cluster, because whenever you resize the node where you built the cluster in the main VI, you would need to edit the subVI and adapt the connector. Clusters have a fixed size.
 
What you should do is have arrays as inputs and outputs. Now your subVI can handle any size, and the number of elements in the inputs and output arrays can vary between calls.
0 Kudos
Message 6 of 9
(5,706 Views)


@WillD wrote:
Is there a way to make a VI icon such that I can drag the actual icon to create discrete inputs similar to the Index Array VI?
Or am I stuck cluster building and passing that in?


No you can do it:
  1. Express VIs (I have heard it's not that hard)
  2. Right click on the VI, deselect 'View as Icon':


Ton


Message Edited by TonP on 01-31-2008 10:01 AM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 7 of 9
(5,685 Views)
Suggestion 1: I believe is the same thing that Ben said in reply #4. Also, my understanding is that you need the LabVIEW Express VI Development Toolkit in order to create your own Express VIs.

As for the second suggestion, I don't think this accomplishes what the OP is trying to do, which is to make something that works like Index Array, which allows you to have additional input terminals for which indices you want to extract. Deselecting "View As Icon" allows you to "expand" the subVI, but it's still limited to the terminals that were setup for the VI in the first place.
0 Kudos
Message 8 of 9
(5,660 Views)
WillD,
 
smercurio_fc is correct. You need to purchase the NI LabVIEW Express VI Development Toolkit separately, unless you have the NI Developer Suite. You would definitely need this toolkit in order to create your own Express VIs.
 
Carla
National Instruments
Applications Engineer
0 Kudos
Message 9 of 9
(5,652 Views)