LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i make a 2D array from 2 arrays?

Solved!
Go to solution

I want to mimic a test suite that would be written to a XML file and was trying to make a 2D array from 2 arrays of strings. Even though i used a 'Build Array Function' when i connect the resulting array to an 'Index Array Function' it tells me that the source is a string.

0 Kudos
Message 1 of 2
(1,111 Views)
Solution
Accepted by topic author AndreiV

You need to disable autoindexing at the FOR loop boundaries. (tunnels should be solid, not hollow)

 

altenbach_0-1613841656296.png

 

If you autoindex, you lose one dimension per tunnel. You really need to learn the basics here. 

 

  • Your sequence structure serves no purpose. Delete it.
  • Don't clutter the diagram with decoration covering some of the code.
  • You first loop is faulty and will only give you the result of the last iteration. See picture below for the correct way.
  • etc.etc etc.!!!

 

altenbach_0-1613844765004.png

 

 

.It is actually not clear why you can't just do "everything" (i.e. your entire diagram!) in one small loop.

 

 

0 Kudos
Message 2 of 2
(1,074 Views)