LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Text Files Line By Line, Displaying Results

I am a total newbie to Labview, please bare with this elementary question.

I come from a Pascal background, so my line by line programming has not yet caught up to the "data flow" programming of Labview.

Pseudo code:
open file.
read a line from a text file.
place read line into indicator.
display indicator.
read all lines until EOF.
make changes to indicator if necessary.
write changes back to text file.
close file.

I have looked at the "Read from Text File.vi" block diagram. That will read my text file...the block diagram seems to busy and complicated to do such a simple task.

If someone would just point me in the right direction, maybe even something as simple as "Labview for dummies" might be
what I need.

Thanks,

Dhubbell
0 Kudos
Message 1 of 4
(3,016 Views)
Here is a very crude and extremely simplified examples..

(Okay guys!!! it IS oversimplified... but I'm doing this between code tests)


Dhubbell,

Look at the attached vi. To "test" it, simply change the file path and name to an existing path and text file. It will give you a basic idea how to write your vi.

-enjoy-

JLV
Message 2 of 4
(3,016 Views)
I forgot to mention...

The explanation and example is shown in the block diagram..

-sorry-
0 Kudos
Message 3 of 4
(3,016 Views)
JLV Thank you!

I like keeping it simple. This will give me a good start.

Thank you!

Dhubbell
0 Kudos
Message 4 of 4
(3,016 Views)