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.
See if the accepted solution here http://forums.ni.com/ni/board/message?board.id=170
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?
I also figured out, it's a bit different with your but it does the job.
Thanks for the help.
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
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