LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert string into a 1d array of strings

Solved!
Go to solution

I attached a txt file called Percentage, on one of my messages.

I'll attach it again.

0 Kudos
Message 21 of 34
(2,954 Views)

I found the problem, but I don't know how to fix it.

The thing is the array has only 1 column and I need to separate the data in two columns.

I need the headings in the first column and , the additional info in the second.

Just read from the txt and display it in an array with a bigger string indicator and you will see what I mean.

Download All
0 Kudos
Message 22 of 34
(2,942 Views)

I fixed the problem the following way:

Code.PNG

0 Kudos
Message 23 of 34
(2,921 Views)

Are you aware that index array is resizeable? Only a single instance is needed here. There is still way too much duplicate code.

 

Why is there a while loop? Does the file continuously change, making it necessary to read and porcess it over and over?

0 Kudos
Message 24 of 34
(2,917 Views)
The txt doesn't change in this vi but the system exec command's result does.
0 Kudos
Message 25 of 34
(2,914 Views)
Is there a way to center the text in the indicator?
0 Kudos
Message 26 of 34
(2,908 Views)

Yes, just set the font to be centered.

0 Kudos
Message 27 of 34
(2,906 Views)
I seem to have a tab and I can not rsmove it.
How can I remove tab space and text from string?
0 Kudos
Message 28 of 34
(2,902 Views)
Have you not even looked at the code? You have a function there that replaces tabs with spaces. Turn on Context Help and read it. You still haven't taken any of the free tutorials, have you?
0 Kudos
Message 29 of 34
(2,895 Views)

Sorry about that. I removed the tab ans space I was adding, but the first string still has a tab in it, and I don'tknow where it is.

Strings.PNGCode.PNG

0 Kudos
Message 30 of 34
(2,869 Views)