LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cannot add or remove terminals in subvi

I used the built-in LabVIEW 'Create SubVI' function to generate several subVIs. Now when I go into the subVIs I cannot add or remove any terminals. Those options are greyed out. Please help!

0 Kudos
Message 1 of 9
(5,376 Views)

Can you right-click and go to Patterns to select a new pattern? You can only add or remove terminals if there is a similar pattern to accomodate the change.

 

I very rarely need more terminals, so if you're adding or removing terminals alot, you may need to work on your subVI coding practices.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 2 of 9
(5,373 Views)
As James pointed out - if you have a lot of terminals on your SubVI you might have hit the limit (i.e. the largest pattern available).

You should try to keep to the 4-2-2-4 pattern 100% of the time by using clusters to group data items together.

LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 3 of 9
(5,363 Views)

This is my first go at programming from scratch in LabVIEW. I was a user once 10 years ago and only did some very minor editing to a few VIs then...

 

I am currently trying to replace 16 individual output terminals from a VI with 1 output cluster terminal to reduce all the wires I'm connecting.

 

Postnote:

 

I figured out my problem. I had disconnected all terminals (this option is not greyed out) but I was still not able to add terminals to the blank pattern. The pattern in use was the last pattern on the list, so I could not add any more terminals I guess. When I switch to a smaller pattern template the 'Add terminal' is active and sometimes the 'Remove terminal' is active. 

 

I also erroneously thought that somehow adding new inputs/outputs to the subVI was simply linked to just adding terminals to that connector block and then I could right-click there and choose which things I wanted to link up. Now I know I just have to click directly on what I want to link using the wire tool.

 

I was getting pretty frustrated at something I knew had to be simple... unfortunately I'm setup only with the cDAQ where I'm at and even though I have an internet connection I don't have audio so it is more difficult to follow online tutorials. I had also looked into the help but was struggling to find the answer.

 

Thanks for your fast reply.

 

0 Kudos
Message 4 of 9
(5,357 Views)

So it sounds like you have it figured out now. I would highly suggest finding a way to watch some basic tutorials if you intend on programming in LV from scratch for more than the next week. You'll spend a lot of time trying to debug or figure out little things than the tutorials would take.

 

 

"Give me six hours to chop down a tree and I will spend the first four sharpening the axe."  - Abraham Lincoln

 

Here are some free training tools primarily focused on LabVIEW and NI hardware to help get started.

NI Learning Center

NI Getting Started

-Hardware Basics

-MyRIO Project Essentials Guide (lots of good simple circuits with links to youtube demonstrations)

-LabVEW Basics

-DAQ Application Tutorials

-cRIO Developer's Guide

Learn NI Training Resource Videos

3 Hour LabVIEW Introduction

6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 5 of 9
(5,346 Views)

I have to recommendation i think they will helpful

1)for making subvi open your code select all by ctrl+a and go to tools bar /edit/ cerate subvi 

then subvi with terminals will be create

2) if you hit max channel limit for terminals use cluster to reduce number of channel for make terminals

 

0 Kudos
Message 6 of 9
(5,306 Views)

Hatef, that doesn't help much if he already has the subVIs that he's trying to alter. Your tip doesn't save any time in this case and is just listing off a way that subVIs can be created.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 7 of 9
(5,301 Views)

thank you james I think it is better to take look at this subvi to find a problem 
Wagonlitcould you attach this vi to find what  the problem is?

0 Kudos
Message 8 of 9
(5,288 Views)

  

0 Kudos
Message 9 of 9
(5,218 Views)