01-23-2014 10:26 AM
Hi,
I'm using Teststand 2013 and Labview 2013
Is it possible to define a relative path for a global variable in the Teststand? Ex. "..\vector1.hws"
Or I should use the Labview functions to solve this issue?
.
Thanks,
Solved! Go to Solution.
01-23-2014 10:43 AM
Paths are so much easier to manipulate in LabVIEW. So you could store the relative path as a string and then use LabVIEW to make the absolute path.
I typically store a folder in a global variable and then I can just concatinate the strings to build the absolute path. For example:
FileGlobals.Folder = "C:\\foo\\bar\\", Locals.Path = FileGlobals.Folder + "blah.txt"
01-23-2014 12:50 PM
If the file exists within your search directories you can use Engine.FindFile.
Also, you can use Engine.GetTestStandPath to get a base TS path and then make relative additions as crossrulz suggested.
Regards,
01-23-2014 04:09 PM
Yes. It seems that it is easier to manipulate a file path in Labview.
I will store the file name in the TestStand variable and use the Labview to find the absolute path.
Thanks