NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there anyway of opening a .tpj file in LabVIEW to get the build files for a sequence?

Is there anyway of opening a .tpj/ or exploring a .tsw file in LabVIEW to get the build files for a sequence? Thanks!

0 Kudos
Message 1 of 3
(3,242 Views)

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.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 3
(3,232 Views)

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:

 

http://zone.ni.com/reference/en-XX/help/370052J-01/tsapiref/reftopics/workspacefile_findworkspaceobj...

Tom
TestStand Documentation
0 Kudos
Message 3 of 3
(3,203 Views)