NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

programmatically close the current sequence’s window

Is there a way to programmatically close the current sequence’s window in order to reload it if it was modified or to load another sequence (programmatically)?

0 Kudos
Message 1 of 2
(3,081 Views)
Do you want to close it from the UI?  Because I don't think you can do it from the Seq. Editor???? 
 
From TestStand Help:
 

CloseSequenceFile Method

Syntax

ApplicationMgr.CloseSequenceFile ( file)

Return Value

Boolean

Returns whether the sequence file was successfully closed.

Purpose

Closes a sequence file.

Remarks

The Application Manager control attempts to close the sequence file by generating a QueryCloseSequenceFile event. The QueryCloseSequenceFile event confirms whether to release the file and remove the file from the SequenceFiles collection. If the sequence file is running in an execution or if other references to the sequence file exist, TestStand does not immediately unload the file from memory.

Parameters

file As SequenceFile

[In] Specifies the sequence file to close.

 

OpenSequenceFile Method

Syntax

ApplicationMgr.OpenSequenceFile ( sequenceFilePath)

Return Value

SequenceFile

Returns the opened sequence file, if successful. If a type conflict occurs when loading the file and the conflict prevents TestStand from opening the file, this method returns NULL. If an error occurs while opening the file, this method throws an exception.

Purpose

Opens a sequence file.

Remarks

This method adds the sequence file to the SequenceFiles collection and generates the SequenceFileOpened and DisplaySequenceFile events.

Parameters

sequenceFilePath As String

[In] Specifies the path of the sequence file to load. If you do not pass an absolute path, this method searches for the file using the TestStand search paths.

Hope that helps,

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