LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Data From text File

Solved!
Go to solution

I would like to read data (numbers sepereated by spaces) and write them into an array. This is what i have so far.

Thanks.

 

0 Kudos
Message 1 of 13
(5,084 Views)

Please explain how your textfile looks like (or post it).

It is possible that "Read from Spreadsheet File.vi" is sufficient for your task.....

 

hope this helps,

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 13
(5,080 Views)
This is the file I am currently testing the vi with.
0 Kudos
Message 3 of 13
(5,073 Views)
Solution
Accepted by wowden

Try using the "Read from Spreadsheet File.vi". The only thing you obviously have to change is the delimiting character, which seems to be a blank. In the default configuration, spreadsheet files use tabs as delimiters....

 

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 4 of 13
(5,062 Views)

i have a text file which contains hundreds of records... like given below... i want an application which can search the id and display the information

 


abcxxx123; name:john adress:abc123 weight:65kg phn-no:123123
abcxxx124; name:alpha adress:abc123 weight:63kg phn-no:123123
abcxxx125; name:bravo adress:abc123 weight:68kg phn-no:123123
abcxxx126; name:charlie adress:abc123 weight:67kg phn-no:123123
abcxxx127; name:mick adress:abc123 weight:67kg phn-no:123123

END
*************end of data*************************************

i want to retreive data from a text file like this one.. i want a labview application in which
when i enter the id..which is unique e.g... abcxxx123..it should search the id in the file and display all the other information
which is infront of this id... in a display text field..like for example

 

.... name:john adress:abc123 weight:65kg phn-no:123123 ...


please if anyone can help me in this regard...

0 Kudos
Message 5 of 13
(4,493 Views)

You've posted into a 2 1/2 year old thread.  You really should start a new thread so that it gets the attention it deserves.  We have a few regex whizzes on the forums who I'm sure can help you figure out how to do it.

0 Kudos
Message 6 of 13
(4,482 Views)

Ok...i dont know about this forum...i joined today..it ll take sometime to understand things..thanks for reply... please send me the link of the thread.. where i can find the solution..

0 Kudos
Message 7 of 13
(4,479 Views)

Go to the main LabVIEW board.  http://forums.ni.com/t5/LabVIEW/bd-p/170

 

Click on the link that says "New Message".

0 Kudos
Message 8 of 13
(4,468 Views)

Like this.

 

InfoFromFile.png

 

Ben64

0 Kudos
Message 9 of 13
(4,457 Views)

@ben64 wrote:

Like this.

 

InfoFromFile.png

 

Ben64


I’m a super beginner and I can’t find the functions in your screenshot.

Can please you submit a VI?

0 Kudos
Message 10 of 13
(4,059 Views)