Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66899

Out of Input/Output Terminal Space, Possible to Group Inputs as Cluster?

$
0
0

I have a SubVI in my MainVI that  has all input/output terminals occupied (28 terminals). I want to add more inputs to this SubVI but don't have anymore open terminals. How do I do this?

                      

I tried to create a Cluster of few variables, and then I put that cluster into the input terminal of the SubVI, however, I don't understand how to take a cluster as an input in the SubVI and unbundle it into individual variables. When I try to do it, it gives me error. It says the input cluster has X elements (ex: 5 elements), and the cluster in my SubVI has 0 elements.

 

Is there a more efficient way to pass the inputs to the SubVI instead of connecting each variables to the SubVI's terminal?

 

Ex:
- Main VI has variables (Double): A, B, C, etc...

- Variables A, B,C, etc... are inputs to SubVI

- Main VI calls the SubVI continuously in a for loop until a certain condition is met

 

Requirements: While the program is running, I should be able to change the value of the variable from the MainVI and have that new updated variable reflect during the execution of the SubVI. This means, during N iteration of the SubVI, A could be = 25, however, I should be able to change A to 33, so that during the N+1 iteration of the SubVI, input to A = 33.

 


Viewing all articles
Browse latest Browse all 66899

Trending Articles