NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

文件搜索功能?

已解决!
转到解答
请问如何实现在指定文件夹中,搜索包含指定"字符"的文件,并把文件罗列出来......
*******************************************************

不成咋办?咋办不成!——通Tong
0 项奖励
1 条消息(共 5 条)
5,280 次查看
解答
已被主题作者 通Tong(314269) 接受

Function: List Library

 

Inputs:

  • directory path: intended directory/ folder
  • pattern: "*sub*.*"

 

above lists the following "file names" found in my folder consisting of .GIF, .JPG files etc

  • subVI_chg text color.GIF
  • subVI_chg text color_FP.GIF

 

帖子被ian fung在 08-25-2008 05:38 PM
时编辑过了
帖子被ian fung在 08-25-2008 05:41 PM
时编辑过了
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
2 条消息(共 5 条)
5,279 次查看
你可以使用List Folder.vi 或者 Recruisive File List.vi 获取所有文件的路径,另外我认为你是要在某文件中搜索某字符,如果是Txt文件,你可以用Scan from file.vi或者 Scan From string.vi 来搜索你关心的字符(串)
3 条消息(共 5 条)
5,248 次查看
您好,List Library在哪里呢?
0 项奖励
4 条消息(共 5 条)
3,781 次查看

Hi,

 

My apologies... It should be List Directory (for LV 7.1.x), or List Folder (later version of LV)

 

File I/O > Advanced File Functions >...

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 项奖励
5 条消息(共 5 条)
3,777 次查看