Hi,
The sub VI does not return anything until it is done (just like a C routine
will not return anything until it is done).
If you sub VI's to communicate, you can consider a LV2 global (buffer VI) or
even a global, although a global is not recommended. If possible, you can
also rewrite your code so this is not necessary.
Regards,
Wiebe.
"r. watson" wrote in message
news:bf5de6be.0409011846.3d2b6a7f@posting.google.com...
> Hi,
>
> I've just started using LabVIEW recently and have run into a serious snag
> that is confusing me. The problem is this:
>
> I have built a subVI which traverses an array of Strings.
> The input is the array and also the time delay on the traversal (how much
> to pause after each iteration).
> The output is the S
tring being accessed in the array at the current
iteration.
>
> This output (String indicator) is left inside the for loop and has been
> attached to a terminal.
>
> Inside the larger VI, I pass in the array as well as the delay value. I
have
> an indicator which is attached to the String output. This indicator
receives
> nothing from the subVI.
>
> Everything else is working perfectly and the String shows up perfectly in
the
> subVI String indicator as I watch what happens in the subVI. Using the
> Highlight Execution tool, I see that the path from the subVI String
indicator
> output terminal to the main program String indicator is never travelled.
>
> What is going on here?
>
> TIA,
> Watson
>
> PS ... I should also mention that this was working perfectly fine when the
> entire operation was handled under one VI (not broken down into a sub). I
> need the subVI modularization however to make everything work cleanly.