Hi I have two arrays and I am trying to hook up a control that chooses one or the other, I am having issues doing this. Could someone lend some help?
I have my block diagram and front panel attached.
已解决! 转到解答。
Yep, the Select function is exactly what you are looking for. It is hiding in the Comparison palette.
Perfect exactly what I was looking for!
Thanks for the quick replies!
And if you have more than two arrays, use a case structure with N cases instead and hook it up to an enum, for example. 😄
I would use Swap instead of Select in this case (I almost never use Select these days). It is faster, especially for arrays and composite data types. Added bonus: you can choose which output to use depending on the logic of the swap? input, often eliminating wire crossings or an added Not operation.