06-16-2020 10:42 PM
Dear All,
Greetings,
I would like to ask your help.
I am using Labview 2019 (ver 19).
I have made program to be able saving multiple binary files with increment.
Furthermore, i want to create new folder after the number of files have been saved.
for example.
Run->creating Folder000 then saving 10 files -> creating Folder001 then saving 10 files -> ....... until reaching N Folder.
Could you give me some idea how to implement above plan on the program?
I appreciate your support.
Thank you,
06-16-2020 11:26 PM
It looks like you've already created a means of listing the files in the folder and checking if you have 10 or more.
So just create a new folder in the True case and build up the path using the new one.
And keep a running total of how many folders you've created.
06-17-2020 02:49 AM
Take care for your initial condition to the Shift Register (currently it is uninitialized) and perhaps consider if you want to nest loops rather than checking the folder condition every iteration - this might also allow you to simply remove the shift register (and use the "has 10 files" condition to stop the inner loop, or just have a For loop if you know you have one file per iteration).
06-17-2020 09:28 PM
Thank you for your suggestion.
I have tried the advice from RavensFan and cbutcher.
Thank you RavensFan. here what i tried.
Probably, your advice is correct. i am not sure either what i have done is correct or not. however, placing the Create Folder inside True Case Structure and Build A Path gave me an error. I intent to use Case Structure is to check whether the created folder is duplicated or not.
Thank you cbuthcer. your advice gave me an idea.
by using shift register to replace the List Folder.
The problem came from the List Folder for creating the new folder with different name.
it didn't initiate to new information to create new folder when the N binary files have been saved.
Therefore, i replace List Folder with Case Structure (one case consist of +1) and pass through the next iteration using shift register.
Thank you.
I appreciate your help.