NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Command line arguments for sequence editor

I'm running the sequence editor with a file as the parameter, however, the previous sequences also come up when I do so. Is there a way to run the sequence editor so only the file that I specify comes up?

0 Kudos
Message 1 of 8
(3,815 Views)

Hi,

 

You should only get the one sequence file loaded e.g. SeqEdit.exe "c:\My Seqs\seq1.seq" would load only seq1.seq.

 

Are you running the SeqEditor or a Custom SeqEditor?

 

What version of TestStand are you using?

 

Regards
Ray Farmer
0 Kudos
Message 2 of 8
(3,813 Views)

I'm using 4.0. The problem is that the entire history of files comes up and not just the file that is specified.

0 Kudos
Message 3 of 8
(3,808 Views)

Ah, that's just the Sequence File List, they are not loaded. I think there maybe an option in the Perferences or Station Options to clear this on Startup. But I maybe thinking of something else. I'll check this later, as I dont have TestStand to hand, and get back to you.

 

 

 

 

Regards
Ray Farmer
0 Kudos
Message 4 of 8
(3,802 Views)

Hi,

 

It seems I must have been thinking of something as there doesn't seem to be a way of clearing the Most Recently Used files.

 

On the over hand you can change the User Interface, get a reference to the MRUFiles using ApplicationMgr.MRUFiles and then performing MRUFiles.Clear

 

 

Regards
Ray Farmer
0 Kudos
Message 5 of 8
(3,787 Views)

Are you using a UI or the sequence editor? The UI's by default reload whatever files you had opened when you exited. The sequence editor does not do this so I'm not sure what you are talking about. Perhaps a screen shot or more details would help clarify what you are describing.

 

-Doug

0 Kudos
Message 6 of 8
(3,754 Views)

Looks like I'm running a ui. How do I set it it exclusively open the file selected?

0 Kudos
Message 7 of 8
(3,750 Views)

If you can rebuild the UI youself, you can change the property on the ApplicationMgr UI control for ReloadFiles to ReloadFiles_None and rebuild the exe.

 

If you can't rebuild the UI then you will have to do something to ensure that all files are closed whenever you exit your UI. One way to do that would be to modify the frontend callback for login/logout to close all sequence files by using Engine.GetInternalOption() to get the application manager and then calling CloseAllSequenceFiles() on the application manager.

 

Hope this helps,

-Doug

0 Kudos
Message 8 of 8
(3,714 Views)