LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String to Table

Solved!
Go to solution

Hello there.

I am trying to figure our a way to put String inputs into a table in left right and top bottom.

eg

string 1 goes to Row0Col0 (R0C0)

string 2 goes to R0C1

string 3 goes to R1C0

string 4 goes to R1C1

and so on.

 

I basically want to implement this in a larger VI which needs a report to be printed with data neatly spread out in rows and columns.

And the data is "String" and not numeric.

 

Can anyone help ?

 

0 Kudos
Message 1 of 6
(2,952 Views)

A sample VI to make my point more clear ?

0 Kudos
Message 2 of 6
(2,951 Views)

Hi Rohit,

 

You could try using the decimate 1D array to take alternate elements out of an array, and build this into a new array (see attached snippet).

 

Many thanks, 

Josh E
Applications Engineer
National Instruments UK & Ireland
Message 3 of 6
(2,944 Views)
Solution
Accepted by topic author Rohit_Chawla

Hi Rohit,

 

first you build your rows, then you build your table from the rows:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 6
(2,939 Views)

@GerdW

 

Great !!!!!!!!

I was wondering if someone would ever answer a Newbie like me.

You were prompt and your solution was very straight and did exactly what i wanted to see in the result.

Thanks a lot.

Cheers.

0 Kudos
Message 5 of 6
(2,935 Views)

@Josh E

 

Thanks a ton.

Your solution was very easy.

But only problem was that I wanted String 2 to go to R0C1 and String 3 to go to R1C0.

The result was getting swapped.

So I interchanged the build array terminals and got my work done.

Thanks for the extremely prompt solution.

Cheets.

0 Kudos
Message 6 of 6
(2,933 Views)