NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to programatically close the sequence without saving the file? SaveOnClose not working!?

Hello

 

I have a sequence file open in TestStand. The sequence is modified and not saved so it contains changes. I'm trying to close it programmatically like in attached picture. I don't want to save the changes. I just want to ignore the changes, do not save and just close the file. To do that I'm trying to set the property "ApplicationManger->SaveOnClose" before calling method " ApplicationManger->CloseSequenceFile", but the property does not work. TestStand anyway shows the popup screen with question: "Do you want to save the file?"

 

Why does it not working and how to do that?

Thanks for any help 

0 Kudos
Message 1 of 3
(2,957 Views)

You probably need to handle the QueryCloseSequenceFile event in order to avoid the popup.

CTA, CLA, MTFBWY
0 Kudos
Message 2 of 3
(2,943 Views)

yes, but it might be difficult.

 

I have one workaround now: I save the sequence to some temporary folder and then remove it from this folder. This way popup screen does not appear but i wonder why the property SaveOnClose does not work at all?

0 Kudos
Message 3 of 3
(2,941 Views)