LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDS 7054 creating folders

I was wondering if it is possible to create a folder with another folder inside it and save to that folder. I am using LabView2012 to control a Tektronix TDS 7054 O'scope with a GPIB interace. The program I am creating saves a screenshot of the scope in a USB plugged into the scope (E:\).

 

I can declare the initial directory; FILESYSTEM: MKDIR "E:\; and create a folder inside it and then save the picture inside that folder so the directory path would end up like "E:\folder\file.jpg". What I am looking to do is even more specific and create a folder in a folder to save the file to; "E:\folder1\folder2\file.jpg". any suggestions on how to do this?

Download All
0 Kudos
Message 1 of 4
(2,471 Views)

JakeKing,

 

Here's a link that might be useful concerning MkDir:

 

http://www.pcmech.com/article/easily-create-nested-directories-using-mkdir/

 

 

Mason M
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,448 Views)

Just write the full path.The command will create the folder structure.

 

mkdir "C:\Main Folder\SubFolder\Another Folder\OneMoreFolder\File.jpg"

0 Kudos
Message 3 of 4
(2,439 Views)

Thank you for your quick replies. However, niether of these things work. I tried just creating more directories with more slashes already. Using Labview with the USB plugged into the tektronix 7054 it will not create more than one directory deep at a time. I even created a smaller program which I attached to make sure nothing else was interfering. FILESYSTEM:MKDIR "E:\folder\test" yields no folder created at all. Only FILESYSTEM:MKDIR "E:\folder" will create something.

 

While messing with my smaller program I have discovered however, that when I ran the program once with FILESYSTEM:MKDIR "E:\folder" and then ran it again with FILESYSTEM:MKDIR "E:\folder\test", it created a "test" folder inside the "folder" folder. I will try to integrate this into my bigger program, but I'd rather a less cumbersome more elegant solution if anyone is able to find any. Thanks again.

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