LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading irregular string from a file

Solved!
Go to solution

Dear All,

 

I have an original txt file named scal.txt. It's irregular string. I used excel to save as with tab format named scal-1.txt. It can read from LabVIEW. How can I read irregular string with in LabVIEW. Thank you.

 

Download All
0 Kudos
Message 1 of 6
(3,751 Views)

Your original format uses fixed width. So you need to split each line at the nth position.

 

Felix

0 Kudos
Message 2 of 6
(3,739 Views)

Dear F. Schubert,

 

Which function can I use. Any examples? Thank you!

0 Kudos
Message 3 of 6
(3,735 Views)
Solution
Accepted by topic author Ancle

This is quite simple. Use help for more information.

 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 4 of 6
(3,723 Views)

In the string palette you might find a lot of useful functions for manipulating strings. I'm not sure with the names (I memorized the icons), but I think one was called 'Pick line' and the other was called 'split string'.

 

Felix

0 Kudos
Message 5 of 6
(3,702 Views)

On a side note, things would have been quite a bit simpler with this idea implemented. Please support it if you like it! 🙂

 

(In this special case of fixed width fields, even this idea would have solved it. ;))

0 Kudos
Message 6 of 6
(3,667 Views)