LAVA: how to read all text files in folder - LAVA

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

how to read all text files in folder read text Rate Topic: -----

#1 User is offline   levin.hua 

  • Active
  • Pip
  • Group: Members
  • Posts: 13
  • Joined: 26-March 09
  • Location:China
  • Version:LabVIEW 8.2
  • Since:2007

Posted 29 July 2009 - 08:03 AM

Hello, wisdoms! Please kindly give me some advices or hints.
Now, i need read all text files in a folder, but i just find i only can read one selected file one time.
It seems LV can't read files in folder one by one automatically.
Should i use ActiveX or .net??
0

#2 User is offline   Antoine Châlons 

  • Extremely Active
  • View gallery
  • Group: Moderators
  • Posts: 382
  • Joined: 08-January 07
  • Location:France
  • Version:LabVIEW 2009
  • Since:1999

Posted 29 July 2009 - 08:19 AM

View Postlevin.hua, on 29 July 2009 - 10:03 AM, said:

Hello, wisdoms! Please kindly give me some advices or hints.
Now, i need read all text files in a folder, but i just find i only can read one selected file one time.
It seems LV can't read files in folder one by one automatically.
Should i use ActiveX or .net??



Hello,

Remember that you are limited only* by your imagination ;)

LabVIEW has a function in the "File function" Palette to list the content of a folder :

Attached Image: liste.png

So you can use it to get the content of your folder and then use a while loop to read each file :

Attached Image: readfiles.png

Of course you can then add improvements to only read text files, etc..

Hope this helps

*: well.. almost..
3

#3 User is offline   levin.hua 

  • Active
  • Pip
  • Group: Members
  • Posts: 13
  • Joined: 26-March 09
  • Location:China
  • Version:LabVIEW 8.2
  • Since:2007

Posted 29 July 2009 - 09:35 AM

Faint, i didn't take a look at all funtions on palette. Thank you Antoine! This function is which i am looking for!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic