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.
05-18-2017 06:37 AM
Hi,
I`m sure this has been asked in previous topics but i just can not find the answer to my problem.
I would like to create a folder which has the name of the UUT as the folder in which i will store raw data from my tests. I have created a statement called Locals.data_folder and give it the variable "C:\\data\results" but how do i go about creating folders based on the UUT from TestStand?
Any help is most welcome.
Thanks
James
Solved! Go to Solution.
05-18-2017 06:42 AM
James,
i recommend that you write a module (C/C++, .NET or LV) to create and name the folder. Pass the UUT ID (serial number) as parameter to that module.
05-19-2017 12:29 AM
Hi,
Thanks for the reply. I did try using a call executable with "/C echo test>>mkdir D:\\TestStand\TR123" as the argument expression but this didn`t work.
I`ll try using a piece of LV to generate the folder.
05-19-2017 05:02 AM - edited 05-19-2017 05:15 AM
Hi
no need to use LabVIEW to do it.
You can use in TestStand the call executable.
In the step settings, go to call settings.
File Pathname: cmd (C:\windows\system32\cmd.exe should be write behind the file pathname).
In argument expression: "cmd /c mkdir D:\\TestStand\\TR123\\" + Locals.String.
You just have to set Locals.String with the name you need.
Regards
05-19-2017 05:10 AM
Hi,
Works a treat. Thanks. Taking the echo out means the code now works.
05-19-2017 06:06 AM
Potentially another thing why your code didn't work:
You had a \T in the path which escapes to a tabulator. To unescape, the second \ is necessary (=> '\\').