LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2D array labview to C/C++/JS.. form array!!?

Solved!
Go to solution

Hi,
How i can to convert the 2D array in labview to 2Da rray string like in the C/C++/JS like this but in a dynamic way!
Sans titre.png
Thank you for your help!

0 Kudos
Message 1 of 7
(3,443 Views)

That's a simple formatting question, right? Do you want a 3x3 solution or an universal solution?

 

I would autoindex on an FOR loop, use "array to spreadsheet string" with comma as delimiter on each row (1D array), pad with brackets, autoindex the outputs and repeat on the 1D string array after the FOR loop once more. See how far you get.

0 Kudos
Message 2 of 7
(3,437 Views)

Thank you for your response but i searsh an universal solution(dynamic), I wanted to know if there was already someone who made this application.

0 Kudos
Message 3 of 7
(3,430 Views)

My solution IS an universal solution that works on any size array. Have you tried?

 

(Please explain your use of the word "dynamic". It's ambiguous here)

0 Kudos
Message 4 of 7
(3,428 Views)

not yet I'll try it and I'll keep you informed thank youuu

0 Kudos
Message 5 of 7
(3,425 Views)
Solution
Accepted by topic author EMCfrance

Here's how it could look like. Works for any size, even non-square arrays. Change the format for other numeric types (DBL, etc.)

 FormatArray.png

 

0 Kudos
Message 6 of 7
(3,421 Views)

it work thank youuuuu very much.

0 Kudos
Message 7 of 7
(3,386 Views)