NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with duplicating the Sequence Editor Workspace Environment under the LabVIEW GUI

I have built a suite of tests that run beautifully under the Sequence Editor.  They are part of a workspace, and it appears that this is crucial to resolving some of the internal paths to models and sub-sequences.

 

However, when I run them under the LabVIEW exe gui (custom modified version), they appear to act as if I have opened the SEQ files directly, and not through the workspace.

 

I have tried to use Engine.OpenWorkspaceFile, but this does not modify the search directories, and does not resolve the issue.

  

Is there a way to load my workspace and then specific sequence files in the GUI?  If I can't figure this out, it appears I have a lot of work ahead of me to re-tool these to not use the workspace.

0 Kudos
Message 1 of 3
(114 Views)

I think I figured it out...

 

I had been calling OpenWorkspaceFile, but this only opens the workspace, does not set it.  You then have to set the CurrentWorkspace with a property...

 

setWorkspace.png

 

Note:  Now I am dealing with releasing the objects in the Workspace; closing the file reference doesn't work.  Maybe I need to set the current workspace to null first?

0 Kudos
Message 2 of 3
(95 Views)

@Jed_Davidow wrote:

 

Note:  Now I am dealing with releasing the objects in the Workspace; closing the file reference doesn't work.  Maybe I need to set the current workspace to null first?


Don't know for sure, but I guess it's worth a try !

0 Kudos
Message 3 of 3
(68 Views)