02-01-2016 11:22 AM
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!
02-01-2016 11:23 AM - edited 02-01-2016 11:25 AM
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> ---'
02-01-2016 11:27 AM
02-01-2016 11:38 AM
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.
02-01-2016 11:55 AM
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.
-MyRIO Project Essentials Guide (lots of good simple circuits with links to youtube demonstrations)
Learn NI Training Resource Videos
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> ---'
02-01-2016 03:06 PM
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
02-01-2016 03:18 PM
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> ---'
02-01-2016 03:29 PM
thank you james I think it is better to take look at this subvi to find a problem
Wagonlit, could you attach this vi to find what the problem is?
02-08-2016 06:23 PM - edited 02-08-2016 06:24 PM