From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

shutdown windows7 with a Teststand sequence running

Hello,

 

We ported our application from Teststand 3.5 on Windows XP to Teststand 2014 with Windows7.

The sequence is started with testexec.exe to launch the application.

 

On WindowsXP, when user push the power button of the machine, windows shutdowns and every thing is OK.

On Windows7, we have a popup window from TestExec to confirm shutdown process with running sequence.

Because user has no keyboard, nor mouse, on the machine, it is a problem created by our new version of the application.

 

What are your advices to correct this?

My IT colleague, looks in Windows configuration to force shutdown even if an application cries but I think there is a specific setting to be used on Teststand side to be OK.

0 Kudos
Message 1 of 5
(4,742 Views)

If I'm not at the right place for my question, where should I place it?

Do anyone have an advice?

0 Kudos
Message 2 of 5
(4,640 Views)

Hi,

 

Probably you are asking for this option :

 

Configure menu -->Station options -->Time limits (tab)

settings for "normal execution"

     when  terminating or aborting.

 

There is an option for "Prompt Action".This can be moved to terminate.

 

Please try out different options and hope this helps.

 

 

Ravi

0 Kudos
Message 3 of 5
(4,601 Views)

We will try.

Previously qith XP, we had not such issue but, you're right our settings may be differents.

To be continued in August.

0 Kudos
Message 4 of 5
(4,597 Views)

solved by changing register in Windows

===

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel\Desktop]
"AutoEndTasks"="1"
"HungAppTimeout"="1000"
"WaitToKillAppTimeout"="2000"
"LowLevelHooksTimeout"="1000"

===

We are now close the need: short action on power button will power off the PC without blocking situation (from TestStand)

Message 5 of 5
(3,316 Views)