professor_rumsdiegeige Posted May 20, 2009 Report Share Posted May 20, 2009 Hi, I've got a very large 2D array that is passed to a subVI, which is called frequently. My question is: is this big array copied each time, or is it passed as a reference (like a pointer in C) ? Thanks a lot. Sabine Lorentz Quote Link to comment
Grampa_of_Oliva_n_Eden Posted May 20, 2009 Report Share Posted May 20, 2009 Please see the "Clear as mud" posting in this thread by Greg McKaskle on the DarkSide. Ben Quote Link to comment
Cat Posted May 21, 2009 Report Share Posted May 21, 2009 QUOTE (neBulus @ May 19 2009, 10:20 AM) Please see the http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=191864#M191864' target="_blank">"Clear as mud" posting in this thread by Greg McKaskle on the DarkSide. Thanks for the link, Ben. I've been realizing from bits and pieces I've been picking up on LAVA that it matters where controls/indicators live. Intuitively, it's always seemed to me that I should put data (control) only in the case where it's going to be read. Greg's comment that: "the subVI can truly be inplace only if its terminal is owned by the top diagram and not placed into a loop, sequence, or case diagram" changes that paradigm. I'd never considered there might be different "layers" to a single block diagram. I'll need to look over some code (especially with large data sets) and see if I need to move some controls. Cat 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.