04-15-2005 06:58 AM
04-15-2005 07:08 AM
04-15-2005 07:08 AM - edited 04-15-2005 07:08 AM
Message Edited by NIDave on 04-15-2005 07:09 AM
04-15-2005 07:08 AM - edited 04-15-2005 07:08 AM
Message Edited by NIDave on 04-15-2005 07:10 AM
04-15-2005 07:13 AM
@Dave123 wrote:
Hi,
I'm passing an array of clusters to a sub vi. The sub vi will then make some changes to each element and return the array to the calling vi.
In the sub vi do I have to have two arrays, one set up as a control (input) and one set up as an indicator (output)? It makes the front panel look a bit cluttered.
Is it not possible to use the same array as an input and return it as an ouput?
Does LabView allow the use of pointers to variables like C? If so can they be passed to sub vi's rather than the data itself?
Thanks,
Dave.
04-15-2005 07:14 AM
04-15-2005 07:16 AM
04-15-2005 09:32 AM
@NIDave wrote:
If I understand your question correctly you can just use a local variable to the control and after your data manipulation that local varb can be written to. See this attached simple VI.
Hope this helps,
-Dave
Sorry forgot to attach it the first time and that post in the middle is some sorta glitch because I tried to stop it mid-post when I realized I hit the wrong buttonMessage Edited by NIDave on 04-15-2005 07:10 AM
04-15-2005 11:14 AM
04-16-2005 10:08 AM
@GerdW wrote:
Hello Dave123,
I forgot to mention, that passing a reference is like passing a pointer to a variable in C...