06-04-2009 01:01 PM
I have pictures that is taken every 2 or 3 minutes and then dumped into a file folder with sequentail number as file names.
Now I want to find a routine to automatically check the last picture and load it into labview.
Please be aware that I already have other hardware to acquire images and store them in the computer, any advice with using other I/O device is appreciated , but not needed.
Task is simpel! (hopfully for you.) Only need to find the latest file in a fixed folder and open it by labview (e.g., by read JEPG file.vi ). any insights?
Solved! Go to Solution.
06-04-2009 01:16 PM
06-04-2009 02:01 PM
See if the accepted solution here http://forums.ni.com/ni/board/message?board.id=170
06-05-2009 06:33 AM
My file's names are like this
It's not always start with number 0.
The directory vi. that you ponited out will tell me weather there is a new file being written into the specified folder,
I wonder if there is another vi that can read the last file?
06-05-2009 06:39 AM
If you find that file, you can read it yes
06-05-2009 09:07 AM - edited 06-05-2009 09:08 AM
I wrote a VI to find the newest file (well, last modified file) in a given folder.
06-05-2009 10:03 AM - edited 06-05-2009 10:10 AM
Because List Array returns files alphabetically I think you will run into problems with your version if you have files Picture 99.jpg and Picture 100.jpg or things like this.
Logically 100 was saved after 99, but your vi will return 99
06-09-2009 03:11 PM
Tim, you're right, my code only works when picture's name has number less than 99, I switched to you code and it works well. Raymond