09-30-2011 04:04 PM
Is there anyway of opening a .tpj/ or exploring a .tsw file in LabVIEW to get the build files for a sequence? Thanks!
10-01-2011 10:09 AM - edited 10-01-2011 10:11 AM
Yes there is.
You will need to go deep in the TestStand API for the info you want. You need to open a reference to the engine. Once you do that then call OpenWorkspaceFile through an invoke node. Open the TestStand help and read about that method. From there the options are endless.
If you want to get the ProjectFile you need to use the FindWorkspaceObject method from the WorkspaceFile and then you will have the .tpj file. Again you can read more about your options in the TS help.
Here is a simple example of opening a .tpj from the examples workspace. TS 4.1.1 and LV 8.6. You can probably take that and build on it. You will have to design some algorithm to traverse through the tree.
10-03-2011 03:16 PM
Documentation for the Engine.OpenWorkspaceFile method:
http://zone.ni.com/reference/en-XX/help/370052J-01/tsapiref/reftopics/engine_openworkspacefile_m/
Documentation for the WorkspaceFile.FindWorkspaceObject method: