09-05-2014 11:37 AM
If you connect any array to the element connector the wire won't be broken, it will get broken only once you connect something else to the 1D array connector, is this could be considered as a minor bug?
09-05-2014 12:04 PM
Interesting find:
However, untill the array input is wired the vi is broken(Unwired or bad terminal). As soon as the array is wired the wire to the scalar input breaks and the vi remans broken(Connected Terminals of different types)
All errors must be fixed to run so while it is surprising and possibly incorrect it cannot rate above trivial.
OTOH if I was quickdropping that bd I might wire an array to that input then insert an index array and would perfer the estetics if I used the defaul "show red X's on broken wires" option.
09-05-2014 12:20 PM
Darn, I was hoping the Search 1D Array might actually take in a 2D array. Yeah, I know that doesn't make any sense.
I agree that this is a bug, but definately a trivial one.
09-05-2014 12:51 PM
@crossrulz wrote:
Darn, I was hoping the Search 1D Array might actually take in a 2D array. Yeah, I know that doesn't make any sense.
I agree that this is a bug, but definately a trivial one.
Trivial sub vi to build.
Inline it if you use it
09-05-2014 01:02 PM
Jeff·Þ·Bohrer wrote:Trivial sub vi to build.
I know it is. I have done it many times. But I'm always looking for easier ways to do things.
09-05-2014 02:22 PM
Notice that in the case you wire an array for the scalar input, the suggested typedef for the array input is still default DBL instead the one you connected, that proves there's some kind of validation inside.
09-08-2014 04:31 PM
You can actually search for an array (or anything else) inside a 1D array of variants.
The returned index is 1 here. So this may not be a bug after all.
And here is another Search 1D array in 2D array
09-08-2014 04:47 PM
If it wasn't for the setup before the search, I'd be very tempted to do that. But also notice that the 1D Array is being coerced to a variant.
09-08-2014 07:18 PM
@crossrulz wrote:
Jeff·Þ·Bohrer wrote:Trivial sub vi to build.I know it is. I have done it many times. But I'm always looking for easier ways to do things.
Post it to the IE! nD array functions seem to have an open season.