NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Close All Sequence Files

Solved!
Go to solution

I need a sequence to close all sequence files. I was hoping to find an engine method like "CloseAllSequenceFiles". Unfortunately, this method doesn't exist. Any ideas on how I can accomplish this?

 

Thanks,

Steve

0 Kudos
Message 1 of 7
(4,286 Views)

Send a UIMessage with the code UIMsg_CloseWindows for the event code.

 

Engine.PostUIMessage ( executionParam, threadParam, eventCode, numericDataParam, stringDataParam, activeXDataParam, synchronous)

 

You can pass NULL for the execution, thread.

Message 2 of 7
(4,282 Views)

Thanks, You've certainly pointed me in the right direction.

 

The only problem remaining is that I can't give the users the option to save the open sequence files. I need the sequence to have the ability to close all sequence files without offering the user a chance to save the file or any other confirmation. The sequence needs to just close all the sequences with no questions asked.

 

Any Ideas on how to temporarily disable all of the questions?

0 Kudos
Message 3 of 7
(4,259 Views)

Hi JoeTestEngineer,

 

Do you want the file to close automatically and have nothing saved or do you want it to close automatically and save everything as well?

 

Regards,

 

Perry S.

Applications Engineer
National Instruments
0 Kudos
Message 4 of 7
(4,241 Views)

I want the files to close automatically and have nothing saved and no confirmations. 

0 Kudos
Message 5 of 7
(4,236 Views)
Solution
Accepted by topic author JoeTestEngineer

If you are writing your own UI using the teststand UI controls you can implement or change the implementation of the the ApplicationMgr.QueryCloseSequenceFile() event handler. There is no way to modify the behavior of the sequence editor to do what you are asking that I am aware of.

 

Hope this helps,

-Doug

Message 6 of 7
(4,217 Views)

This works great.....

 

Thanks,

Steve

0 Kudos
Message 7 of 7
(4,206 Views)