Gary Rubin Posted December 22, 2010 Report Share Posted December 22, 2010 I32 and y=5 Mine works. Were the I32s <5? Quote Link to comment
ShaunR Posted December 23, 2010 Report Share Posted December 23, 2010 Mine works. Were the I32s <5? Nope, 0-2999. I've never been good with FNs Quote Link to comment
Mellroth Posted December 23, 2010 Report Share Posted December 23, 2010 Nope, 0-2999. I've never been good with FNs I too tried to replicate the code, but just got a copy of the input array. I would expect that the loop should be defined as for( i=0; sizeOfDim(x,0) - 1; i++) because I think the Formula Node is 0-indexed like LabVIEW. /J Quote Link to comment
ShaunR Posted December 23, 2010 Report Share Posted December 23, 2010 I too tried to replicate the code, but just got a copy of the input array. I would expect that the loop should be defined as for( i=0; sizeOfDim(x,0) - 1; i++) because I think the Formula Node is 0-indexed like LabVIEW. /J it never returned when I did that. this works though. Looks like you need the comparison. for (i=1; i < sizeOfDim(x,0);i++) Quote Link to comment
Gary Rubin Posted December 24, 2010 Report Share Posted December 24, 2010 it never returned when I did that. this works though. Looks like you need the comparison. for (i=1; i < sizeOfDim(x,0);i++) Oops.... You guys are right... I wonder why I thought it worked... Quote Link to comment
Aristos Queue Posted December 26, 2010 Report Share Posted December 26, 2010 (i haven't played with the in-line feature very much but inline+subroutine should be the fastest). Inline + Subroutine = Inline Subroutine priority does not add anything once the subVI is inlined. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.