LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

select particular data

Hii
 
    I have attached one text file in that i want to catch the .llb files alone. How to get it
0 Kudos
Message 1 of 17
(3,983 Views)
Hi LabView5,

read in your text file and do:
- convert to an array of string (each string contains one line of text) using "spreadsheet string to array"
- check each line (in a for loop) for ".llb" using "match pattern"
- when line contains the pattern strip the complete path using "scan string" (or some other string functions like subset)
- convert string to path and add to an array (using a build array & shift register)
Best regards,
GerdW


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

Hi LabVIEW5,

read your txt file with LabView using the "Read from text file.vi" and search for your path, then use "Strip Path" to get only the filename.

Mike

0 Kudos
Message 3 of 17
(3,978 Views)
First how to convert to array of strings
0 Kudos
Message 4 of 17
(3,979 Views)

Hi LabVIEW5,

you can use "Spreadsheet String to Array.vi" to get an Array of your data. See the example picture.

Use the right seperator for your file. In my example text file it is "\n" which marks line break.

Mike



Message Edited by MikeS81 on 02-18-2008 03:44 AM
0 Kudos
Message 5 of 17
(3,976 Views)
Mike its working u watch it
0 Kudos
Message 6 of 17
(3,969 Views)
0 Kudos
Message 7 of 17
(3,969 Views)

Hi LabView5,

the "\n" is if you change the string control to Code-View (right click on the control and change to code view). Change the inputs "format string" and "input string". Now it works.

Mike



Message Edited by MikeS81 on 02-18-2008 03:56 AM
0 Kudos
Message 8 of 17
(3,969 Views)
  Hiii Mike,

     I am having one database table.. in that i am getting one column of dates . now i want to sort it ..... how to do??
0 Kudos
Message 9 of 17
(3,858 Views)

Hi KarthikeyanMathialagan,

transform your data to an array and use the sort array function.

Mike

0 Kudos
Message 10 of 17
(3,849 Views)