NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

what happens on terminate or abort?

Could someone explain to me what happens when terminate and abort are pressed please. I know when terminate is used it finishes the current step then runs the cleanup upto the process model and that terminate only finishes the current step. The actual problem I am investigating is related to the nise_importconfiguration. When the sequence is run it sets this up but I want to know how its removed after execution but cant find where to look or if its done automatically.

 

ANy help would be greeatly appreciated

 

 

Thanks 

Please remember to accept any solutions and give kudos, Thanks


LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7
0 Kudos
Message 1 of 5
(3,575 Views)

Hi Akiel,

 

Can you elaborate a bit further on your question? I assume you mean you wish to know whether your NISE configuration is going to be retained or lost, depending on whether or not you use abort or terminate. 

 

From what I can gather in the help files, Abort will finish the current step but not run any clean-up. Terminate will operate the same except it will perform the clean-up afterwards. 

 

If you use the NISE, once you have set up the NISE, the NISE will remain configured as it was before regardless of whether or not you abort or terminate.

 

I hope this helps,

 

Thanks,

Andrew McLennan
Applications Engineer
National Instruments
Message 2 of 5
(3,546 Views)

That was my understanding, but I am interested in the NISE configuration. It seems to be cleared when terminated or aborted but cant find where. I think it is happening after the SequenceFilePostStepFailure call back (the pass/fail dialogue box is displayed here).  At present I can have multiple instances of the same switch by using terminate then getting impatient while it is finishing its current step , so using abort or the windows 'x' to close the program. I want to make sure everything is reset correctly before it all closes but not sure where to put the code.

 

many thanks for reply 

Please remember to accept any solutions and give kudos, Thanks


LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7
0 Kudos
Message 3 of 5
(3,543 Views)

Hi Akiel,

 

I suppose it would be difficult to guarantee returning the NISE configuration to the default without letting it terminate properly. My suggestion would be to add a step at the start that resets the NISE configuration every time the script is loaded. That way, if you decide to abort the execution early, it shouldn't affect the operation when you boot it up. If you would like a bit more information, please let me know.

 

Thanks,

Andrew McLennan
Applications Engineer
National Instruments
0 Kudos
Message 4 of 5
(3,538 Views)

what its doing is deleteing the nise configuration at the end of execution then reloads it using importconfiguration when execution is started. I was looking for a way to ensure the old configuration is removed but as you say may have to put in code at the start of execution.

 

many thanks 

Please remember to accept any solutions and give kudos, Thanks


LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7
0 Kudos
Message 5 of 5
(3,535 Views)