03-29-2015 12:24 AM
This is the output I have:
I want to take that string, and convert it to a 1d array of strings, so I can access each line, with index array.
I tried this:
But the output is a double, and I need it to be a string.
How can I fix this?
I will leave my code, maybe someone can take a look at it.
thanks.
Solved! Go to Solution.
03-29-2015 12:32 AM - edited 03-29-2015 12:36 AM
In the "Spreasheet string to array", wire a empty 1D array of string diagram constant to the type input on the lower left and use a %s format. The output will be a 1D array of strings.
Your code looks extremely convoluted. Can you create an indicator after the sytem exec, then run your Vi until intcontains data. Now stop the VI and right-click that indciator and "create constant". Save under a new name and attach it once more. Now we have typical data to play with.
03-29-2015 12:53 AM
03-29-2015 12:59 AM
@Nando88 wrote:
Can I convert this string into a 2d array after the ":"?
Yes, of course. However, you need to explain what you atually mean by all that. Where is a "."?
We are not clairvoyant! Why don't you do what I suggested above first? Then tell us what kind of output you expect.
03-29-2015 01:21 AM
03-29-2015 02:03 AM
@Nando88 wrote:
I want to change column after ":" in the string.
I still don't quite understand what you mean. You can use "." as column delimiter and newline will be autimatically the row delimiter once you wire a 2D array of string.
It would really make things much more clear if you would actually do what I requested two posts ago. Is there anything preventing you from doing that?
03-29-2015 05:43 AM
03-29-2015 06:02 AM
03-29-2015 06:42 AM - edited 03-29-2015 06:42 AM
@Nando88 wrote:
It just a column change after the colon and a line change after the end of the item being deacribed.
Then you really should have taken Altenbach's advice by using the Spreadsheet String To Array. I did some more messing around with the data to turn those tabs into spaces first.

03-29-2015 07:26 AM
I can print it just fine, but in the array, it doesn't show the complete info, just the headings.
How can I fix this?
Thanks.