06-12-2014 11:04 AM
On my block diagram I have an input path which leads to a case structure that is controlled by radio buttons. The outside case structure will turn to true ater a user selected time period. I am now adding an additional path of images that need to be deleted or moved.
I need to now add the image path to this case structure also but it also needs to go through the same file age parameters from the get file info vi. I have tried using the build array function but it did not work to append the filenames.
Solved! Go to Solution.
06-12-2014 11:30 AM
Option 1: create a subVI with all of the file age logic and then call that subVI for all file paths that need it.
Option 2: Use Build Array and put the file age logic in a FOR loop that will autoindex on the path array
06-12-2014 11:43 AM
06-12-2014 11:52 AM
Basically a List Folder with your FOR loop. Have an error in and error out and the path input on the connector pane.
06-12-2014 12:12 PM
06-12-2014 12:35 PM - edited 06-12-2014 12:35 PM
The comparison is inside of the FOR loop that will be part of the subVI.
So your top level VI should look something like this
06-12-2014 12:45 PM
Thanks very much for your help crossrulz
The drag and drop of the code snippet isnt working could you please upload it as a Vi?