LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to poll a text file with lab view

I am runnig a soft real time data collecting system for shop floor data collecting.reading serial port to list down data into text file. what is the best way of getting this data into labview?.polling of text file or some easy and quick method??
0 Kudos
Message 1 of 2
(2,706 Views)
1.) If the data is coming in separate files, use the 'List directory' function to find out when a new file arrives. Then just read it using one of the standard functions, (i.e. Read txt file.)
2.) IF the data is being appended to a single file, use Open/Read/Close file functions. The read function will give you an offset value which tells you how far into the file you have read. Put that value in a shift register and then you can start reading where you left off when the file is updated.
I hope this helps.
>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 2 of 2
(2,705 Views)