LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

folder

Hi,

I have a problem:

Using the "list folder" I got a list of files in a folder.
Now I want to read the files in the folder from a specific file.

Can anyone help me?

0 Kudos
Message 1 of 19
(3,770 Views)

Is this what you're looking for..?

 

Select specific files.png


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


0 Kudos
Message 2 of 19
(3,763 Views)

Not exactly.
I have a list of files in a folder. For example: A.csv, B.csv, C.csv, D.csv (.csv file).
My program have to read these files and I want, for example, it start to read from the file B.csv (so I want to read B C and D file).
I hope I explained well ...

0 Kudos
Message 3 of 19
(3,753 Views)

Hi gmazza,

 

so you have to solve three problems:

Finding all files in folder: done with Listfolder (solved)

Sort the file list: One could use Sort1DArray to do so...

Start at certain entry in list: sounds like a search or compare operation...

 

Try that on your own and post any results you achieve!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 19
(3,748 Views)

The first two problems are solved (list made and sorted files).
The real problem is the third.
My program creates the path to the folder where the files are stored. Now I have to be able to read the files as I said in my previous post.

0 Kudos
Message 5 of 19
(3,743 Views)

Get specific files_Edited.png


I am not allergic to Kudos, in fact I love Kudos.

 Make your LabVIEW experience more CONVENIENT.


Message 6 of 19
(3,738 Views)

Thank tou so much!!

I found the solution 😉

0 Kudos
Message 7 of 19
(3,730 Views)

I'm back.
Another question: how can I delete part of every element of an array?
Specifically I have the following arry (which I enclose), shown in the list box, from which I want to delete, for each element, the part ".csv".
thanks

0 Kudos
Message 8 of 19
(3,713 Views)

Hi gmazza,

 

look into the advanced file functions. There you will find a VI to strip file suffix from name...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 19
(3,706 Views)

ehmmm???

0 Kudos
Message 10 of 19
(3,694 Views)