LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read contineously file from folder

HI

 

I have 1000 of files and I want read files from folder automatic. Each file ends with

if $BATCH_FILE==true
define $END,false
else
power off
define $END,true

 

if 1 text file is finish then it should load another file automatically

 

0 Kudos
Message 1 of 7
(2,768 Views)

Hi kalu,

 

there are a lot of functions in the file functions palette!

 

For interest you could read the help of ListFolder and use it's outputs in an autoindexing FOR loop...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(2,754 Views)

thanks for reply but it doesn't work I have attach here vi

0 Kudos
Message 3 of 7
(2,744 Views)

No VI...

 

"it doesn't work" isn't a good error description...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(2,741 Views)

selectfile.jpg

0 Kudos
Message 5 of 7
(2,734 Views)

Hi kalu,

 

don't know what you're trying to do:

- you have a "path" control but you don't use it for ListFolder...

- you get an array of filenames from ListFolder, but you don't use that data later on...

- you are using "OpenFile"/CloseFile to get a file path (in the event) and later on you use that path to read data from...

 

Your original question doesn't has anything in common with those things you do now...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(2,728 Views)

Hi Kalu,

 

I also could not follow your question. Can you descirbe us mor detailed what you want to do?

 

Best regards

 

Jerry

0 Kudos
Message 7 of 7
(2,684 Views)