07-07-2014 01:42 PM
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.
Solved! Go to Solution.
07-07-2014 01:46 PM
Try using SELECT FUNCTION.
07-07-2014 01:51 PM
Yep, the Select function is exactly what you are looking for. It is hiding in the Comparison palette.
07-07-2014 02:03 PM
Perfect exactly what I was looking for!
Thanks for the quick replies!
07-07-2014 02:06 PM - edited 07-07-2014 02:32 PM
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. 😄
07-07-2014 02:35 PM
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.