When you deploy a VeriStand Project, it locks the system definition object within the project. However, it can be beneficial to be able to look at configuration settings within the system definiton without undeploying the project. To do this, you can either right-click and the system definition in the project and select "Explore" then manually open the file on disk or use this workspace tool.
The code for this is fairly simple. Since the workspace tool will run within the VeriStand context, it uses the "Get Active System Definition" function from the VeriStand palette to get the path to the system defintion then makes a sys exec call to that file path to load up the system definition file in the system explorer outside of the project.
Steps to Implement or Execute Code
Download the attached files and open the project.
Build the "ViewSysDef LLB" build specification.
Add the tool to your workspace tools menu dropdown. For directions on doing this, refer to the "Adding the tool to the Workspace" section of this tutorial. When you specify the path to your workspace tool, navigate to within the LLB you built in step 2 and select the "ViewSysDef.vi" file (which should be the top level item in the LLB).
Open your VeriStand workspace and select Tools >> "Name you gave in step 3" to run the code:
You should see your system defintion open within a seperate instance of the System Explorer whether you're deployed or not.