08-20-2013 01:38 PM
Hello,
I am trying to assign termials for a subVI, but I found the number of terminals is limited. Is there any way that i can expand the number of termnals of a VI?
Thanks!
Solved! Go to Solution.
08-20-2013 01:41 PM
No, but you can assemble your individual inputs and outputs into arrays or clusters so they use only one terminal, then disassemble the arrays/clusters after they get where they are going.
Cameron
08-20-2013 01:43 PM
Can you be specific what function I can use to assemble/dessemble them?
Thanks!
08-20-2013 01:57 PM
Just use bundle (or bundle by name if they are controls/indicators) then unbundle inside the subvi. They unbundle in the same order they were bundled in.
08-20-2013 02:03 PM
Or you can build arrays and index them to pull things back out (here they all have to be the same construct, i.e., all U16 numbers, or all strings, etc.).
Cameron
08-20-2013 02:10 PM
What connector pane are you using? Typically if you need to go more than the 5x3x3x5, you are trying to do too much in the subVI. You should think about breaking the VI into parts to reduce the need for so many terminals.
Other suggestions would be to group related items into clusters and use the Bundle By Name and Unbundle By Name to set and get the values to/from the cluster.
08-20-2013 02:38 PM
I would also recommend that you use typedefed clusters. They are much easier to maintain if/when you need to modify them.
Based on your recent questions I highly recommend that you take the LabVIEW Core 1 and Core 2 courses. I understand that you are new to LabVIEW but it will help you immensely if you take these courses. They are available online. Many of the questions you have been asking can be answered by taking the core 1 and 2 courses.
08-20-2013 02:54 PM
Thank you.
They are good course but these courses are expensive for a "poor student".
08-20-2013 03:11 PM
What about the free tutorial?
08-20-2013 03:21 PM
Thank you. I will go through the tutorials.
Actually, I have done many LV automatic testing projects but I still do not many functions.
If you do not mind, I can send you one of my program so that you can point out what should I improve.