From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-22-2014 02:53 PM
I am interested in using Write Spreadsheet To File to log some data to my disk. What is the easiest way to include this VI and tell it to create the folders if they don't already exist.
For example:
Using that example, if no "Data" folder can be found on my Desktop, how can I have LabVIEW create the "Data" and "Test1" folders necessary to create Test1.csv in the specified location?
Solved! Go to Solution.
01-22-2014 03:25 PM
I ended up making a VI out of this community example https://decibel.ni.com/content/docs/DOC-23385
12-01-2020 07:17 AM
Is it possible to share your VI as I am unable to reach the link.Thanks
12-01-2020 07:31 AM
Just use the Create Folder Function instead.
12-01-2020 07:38 AM - edited 12-01-2020 07:38 AM
@wbadry2 wrote:
Is it possible to share your VI as I am unable to reach the link.Thanks
Examples got moved around fairly recently. So I'm not surprised if the link doesn't work. See if this fixes your issue.
12-01-2020 07:43 AM
Or use \vi.lib\Utility\libraryn.llb\Create Directory Recursive.vi
12-01-2020 07:53 AM
@UliB wrote:
Or use \vi.lib\Utility\libraryn.llb\Create Directory Recursive.vi
Which can now (at least as of 2019) be found in the File I/O->Advanced File Functions palette.
12-01-2020 01:10 PM
So what's the difference between the Create Directory Recursive function and the Create Folder function? They both seem to create the intermediate folders on the way to creating the target folder. Curious as to why they both exist...