LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert string into a 1d array of strings

Solved!
Go to solution

Save the data from the standard output.  I can't help you without that string data.



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 11 of 34
(4,103 Views)

I did what you suggested, but still nothing.

write and display.png

0 Kudos
Message 12 of 34
(4,090 Views)

Do you have the text file that you saved?  That is what I was wanting.



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 13 of 34
(4,079 Views)

I changed the write to txt file code to this:

write to txt.png

The weird thing is that it does not create any txt file, so that is why I don't see any data in the array.

0 Kudos
Message 14 of 34
(4,076 Views)

I had an error.

My code is now this:

code.png

0 Kudos
Message 15 of 34
(4,068 Views)

Its reading an empty string:

empty.png

Should I read line by line, and if so, how do I do it?

0 Kudos
Message 16 of 34
(4,067 Views)
Saving to file seems pretty pointless. Probe the input to the write file and use some error checking. An obvious change would be to simply wire the standard output to the spreadsheet string to array.
0 Kudos
Message 17 of 34
(4,053 Views)

The thing is that I need a 2d array, with the headings in the first column and the other data in the second column.
How can I do this?
Thanks.

0 Kudos
Message 18 of 34
(4,046 Views)

@Nando88 wrote:

I did what you suggested, but still nothing.


No, you did not! You need to save it with the data contained in the string as I described above.

 

Obviously, you don't want to split after the persiod, else it would split between the 24 and the 3, destroying your value.

 

(Also "/home" is not a valid finename because it contain an illegal character.)

0 Kudos
Message 19 of 34
(4,028 Views)
You've already been told how to do this. You have not attached a copy of the actual string as far as I can tell. You've ignored the instructions on how to save a VI with a default value of the indicator. That's s basic LabVIEW skill. To repeat, run the VI so that you have a value shown. Go to Edit> Make Current Values Default. Save the VI. Attach that.

There are numerous free tutorials. Haven't you been suggested to take them? Have you?
0 Kudos
Message 20 of 34
(4,027 Views)