LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating New Folder after Number of Files have been achieved

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,

0 Kudos
Message 1 of 4
(2,146 Views)

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.

Message 2 of 4
(2,128 Views)

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).


GCentral
Message 3 of 4
(2,101 Views)

Thank you for your suggestion.

 

I have tried the advice from  and  

 

 

 

0 Kudos
Message 4 of 4
(2,065 Views)