05-02-2016 11:43 PM
Hi
I have a for loop which calls an external script. The external script writes something to stdout. I'd like to see the stdout. I tried connecting a string to the stdout, using a concatenating tunnel. But it always only shows one line of stdout, not all of the output from the iterations. How can I achieve that?
Solved! Go to Solution.
05-03-2016 01:22 AM - edited 05-03-2016 10:36 AM
If it is sufficient to see all stdout after the loop has finished, simply wire to the right loop edge to create an array of outputs, one element/iteration and connect a string array indicator ob the outside.
If you want to see the array as it builds, you need to use a shift register and built he array there.
Alternatively, you could use a single string in a shift register and append one line per iteration.
05-03-2016 10:04 AM
Thanks for your help.
I want to see stdout as it runs. So I use a shift register for now. But I still don't understand how I get all the output into one string indicator. I tried to use build array, but it doesn't seem to work?
05-03-2016 10:17 AM
@iviewlab wrote:Thanks for your help.
I want to see stdout as it runs. So I use a shift register for now. But I still don't understand how I get all the output into one string indicator. I tried to use build array, but it doesn't seem to work?
How about using Concatenate String?
05-03-2016 10:25 AM
Perfect, thank you! That is much easier and more straight forward than what I had in mind.
05-03-2016 02:06 PM - edited 05-03-2016 02:06 PM