03-12-2018 07:58 AM - edited 03-12-2018 08:00 AM
From a SubVi I get a 2D array of string elements that look like:
A 1 a
A 1 b
A 2 a
A 2 b
B 1 a
B 1 b
C 1 a
C 2 a
I'd like to turn this into a tree that would look like:
A
>1
>>a
>>b
>>c
>2
>>a
>>b
B
>1
>>a
>>b
C
>1
>>a
>2
>>a
I'm trying to use the attached vi as a reference, however I'm stuck on how I can do this without creating a file/folder structure and deleting it after.
Solved! Go to Solution.
03-12-2018 08:57 AM - edited 03-12-2018 09:21 AM
03-12-2018 09:13 AM
This was what I first came up with before seeing your 2nd post.
03-12-2018 09:44 AM
@Omar_II wrote:
This was what I first came up with before seeing your 2nd post.
Your solution seems to be much more streamlined. although mine is recursive. I wonder which will be better as list size increases. I think I'll stick with mine though as it can handle different depths as well (in case I ever need one to be C 2 a i )