From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i combine 1D array of numeric and 1D array of string

I have 1D array of numeric numbers (COLUMN)

and

1D array of string (COLUMN)

 

I want these two 1D columns to come next to each other and become 2D array.

 

 

1st column               2nd column

A                                1.2

B                                1.01

C                                  2

D                                   8

.

.

.

 

0 Kudos
Message 1 of 7
(4,479 Views)
You can put a numeric and a string in a cluster an hve a 1D array of that cluster
greetings from the Netherlands
0 Kudos
Message 2 of 7
(4,475 Views)

i want 2D of these 2 columns not 1D 😞

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

Then format your numbers into strings and then combine to make your 2D array.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 7
(4,466 Views)

concatenate array but your 1D arrays must be of same type

0 Kudos
Message 5 of 7
(4,464 Views)

i have converted my numeric data into string using BYTE ARRAY TO STRING and combined it with 1D string data but still it is not producing 2D.

BYTE ARRAY TO STRING is giving just one String element not all elements (not array)

 

thanks

 

0 Kudos
Message 6 of 7
(4,451 Views)
Why would you use Byte Array to String? That makes no sense. Look at the numeric to string conversion functions. They are polymorphic and accept an array input.
0 Kudos
Message 7 of 7
(4,446 Views)