LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Text file and string indicator

Solved!
Go to solution

Hello Everyone,

 

I have a basic question but I'm just learning :(, how could I read a text file with three words (Sample 1, Sample2, Sample3) and put them in a string indicator?

 

Mocte117_1-1686879368816.png

Mocte117_0-1686879303041.png

 

0 Kudos
Message 1 of 7
(1,206 Views)

Check the function Read spreadsheet string.vi

 

RKO
0 Kudos
Message 2 of 7
(1,194 Views)
Solution
Accepted by topic author Mocte117

A single indicator or multiple indicators?

 

For a single indicator, just read the file and write directly to the indicator.

 

For multiple indicators, you can probably use Spreadsheet String To Array to parse the string and then Index Array to get the 3 values to write to their indicators.


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
Message 3 of 7
(1,188 Views)

Use "Read spreadsheet string.vi" and then all of them will in the array.

please set this as ANSWER or KUDO this post, if it help you.


Message 4 of 7
(1,156 Views)

Hi, 

 

I was trying to develop the solution you gave me but I ran into problems. Could you help me?

 

This is The Vi that I tried to do:

Mocte117_0-1687044091611.png

 

0 Kudos
Message 5 of 7
(1,055 Views)

Just change the read function to output DBLs, then index from it.

0 Kudos
Message 6 of 7
(1,044 Views)

 Resolved:

Mocte117_0-1687114242918.png

 

0 Kudos
Message 7 of 7
(1,009 Views)