tilli Posted February 7, 2009 Report Share Posted February 7, 2009 hello, I am using tshark's ring buffer to create 3 file that update automatically, the file names are saved with the time and date so they are changing, in labview i want to read the files and convert them but i am getting confused as to how to input the exact name of the file as it keeps changing, i was thinking to using somesort of time stamp of the files in the folder but i am still very stuck..... it will be really helpful if anyone can help, please contact me if you want any more information samia Quote Link to comment
LAVA 1.0 Content Posted February 8, 2009 Report Share Posted February 8, 2009 QUOTE (tilli @ Feb 6 2009, 01:21 PM) hello,please contact me if you want any more information samia If you think you have information that helps us better understand your problem, always append it. Include links to items you refer to (what is tshark's ring buffer?) to help us understand. If you have some code that is a big plus! Ton Quote Link to comment
GSR Posted February 8, 2009 Report Share Posted February 8, 2009 QUOTE (tilli @ Feb 6 2009, 12:21 PM) hello,I am using tshark's ring buffer to create 3 file that update automatically, the file names are saved with the time and date so they are changing, in labview i want to read the files and convert them but i am getting confused as to how to input the exact name of the file as it keeps changing, i was thinking to using somesort of time stamp of the files in the folder but i am still very stuck..... it will be really helpful if anyone can help, please contact me if you want any more information samia If I do that, I will use time stamp to create the file names and STORE the update file names in a txt file. That means total 4 files, the name of 3 of them will keep changing and the updated name can be found in the "STORENAME.txt" (fixed name) file. I hope I understand your question correctly. Quote Link to comment
JustinThomas Posted February 10, 2009 Report Share Posted February 10, 2009 QUOTE (zmarcoz @ Feb 8 2009, 04:59 AM) If I do that, I will use time stamp to create the file names and STORE the update file names in a txt file. That means total 4 files, the name of 3 of them will keep changing and the updated name can be found in the "STORENAME.txt" (fixed name) file. I hope I understand your question correctly. The STORENAME.txt file is not required instead you can use the List Folder function in the FileI/O>>Advanced File Functions Pallete. This function will list all the files and folders available under a specified folder. The filenames are given out as and array of string which you can easy search through using array functions. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.