LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to concatenate 2 arrays to feed into for loop?

Hi Andrei,

 


@AndreiV wrote:

i dont want to add any extra pins, i just want to see if i can make the connection panel larger in size to be easier to click.


Use the Windows Magnifier tool…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 12
(534 Views)

@AndreiV wrote:

I understand it's bad practice as but the schematic isn't mine. In case i have improperly worded my question: i dont want to add any extra pins, i just want to see if i can make the connection panel larger in size to be easier to click.

 

altenbach_0-1614618064145.png

 

 

I cannot change the current number of inputs/outputs as they're part of a way larger project.


 

I have subVIs with hundreds (!) of inputs using the standard 4-2-2-4 connector pattern. The secret is the use of arrays and clusters to bundle value sets that belong together into one single wire.

 

Look at the input and output connectors. On the right you seem to have six inputs (purple-green-purple-green-purple-green), with matching outputs on the left.. That data could be combined in to e.g. an array with three elements of a purple-green cluster making it fully scalable, e.g. if you need 20 such inputs later, nothing needs to change! You also would have only a single wire instead of six, making the diagram much easier to maintain and significantly cleaner! Similarly, the top inputs could be combined into a boolean and a string array, each with two elements, etc. (In a next simplification, you could even turn the clusters into classes.)

 

Obviously, the original programmer was a bit messy and the entire code could be reduced to less than 20%. Sorry you have to deal with this. Maybe he got paid by the number of wires 😉

 

Also note that in order to "click" your tiny connectors, make sure that all connectors have unique and obvious names. If you hover over them with the wiring tool, you get a tip strip naming the current connector so focus on that instead of aiming for that little square.

 

 

Message 12 of 12
(518 Views)