LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subVI terminals are not enough

Solved!
Go to solution

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!

0 Kudos
Message 1 of 10
(3,446 Views)

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

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 2 of 10
(3,445 Views)

Can you be specific what function I can use to assemble/dessemble them?

 

Thanks!

0 Kudos
Message 3 of 10
(3,441 Views)
Solution
Accepted by tian66

 

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.

 

 

0 Kudos
Message 4 of 10
(3,430 Views)

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

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 5 of 10
(3,424 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 10
(3,418 Views)

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.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 7 of 10
(3,401 Views)

Thank you. 

They are good course but these courses are expensive for a "poor student".

Smiley Embarassed

0 Kudos
Message 8 of 10
(3,386 Views)

What about the free tutorial?

0 Kudos
Message 9 of 10
(3,376 Views)

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.

0 Kudos
Message 10 of 10
(3,368 Views)