08-08-2025 11:18 AM
I'm trying to do some simple data manipulation to be used in a csv test report.
Overview:
Input:
Array A =
[ A1 A2 A3 A4]
[ A1 A2 A3 A4]
Array B =
[ B1 B2 B3 B4]
[ B1 B2 B3 B4]
Desired Output:
[ A1 B1 A2 B2 A3 B3 A4 B4]
[ A1 B1 A2 B2 A3 B3 A4 B4]
I have two inputs, first is a 2d array of data containing for test data at 7 different points during the test. This data has been converted from double to string.
I also have a 2d array of booleans that that initially only has 6 different data points since the first test point does not have a pass/fail critira. Booleans are converted to strings and relabled as "pass" or "fail" and then a blank row is added at the top so that the two array's are the same size.
Sample code below
AMAGIS_1-1754669263611.png
With the index for "index array" fixed and index fixed for 'insert into array', i can successfully get the first column of Array B inserted into index 1 of array A. however when i try to programmatically connect the index of "index array" (0, 1, 2, 3) and change the insert array index to 1,3,5,7), it doesn't seem to work as i would expect.
Thoughts?
Solved! Go to Solution.
08-08-2025 11:33 AM - edited 08-08-2025 11:54 AM
first problem
second problem
08-08-2025 11:41 AM
Making some assumptions, here's a potential "merge" solution (using "interleave 1D arrays")
altenbach_0-1754671230479.png
08-08-2025 11:53 AM
@AMAGIS wrote:
I have two inputs, first is a 2d array of data containing for test data at 7 different points during the test. This data has been converted from double to string.
...
Thoughts?
Did you mean "four" (4) instead of "for"? Does the 2D array have 4 rows and seven columns?
08-08-2025 12:11 PM
08-12-2025 09:10 AM
Thanks everyone. The interleave in a for loop is all I needed. Consider this solved.
08-12-2025 09:27 AM
Please don't forget to give kudos for those who helped you !
08-13-2025 06:26 AM
@AMAGIS wrote:
Thanks everyone. The interleave in a for loop is all I needed. Consider this solved.
Please mark the solution.