NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to avoid freezing UI on NewExecution

How to avoid freezing UI on NewExecution?
Hi all.
Is there a way to avoid a freezing UI when calling Engine.NewExecution?
I'd like to implement an autom. Test Execution, that runs several tests one after another.
While one is executed the next should be prepared while the user should be able to watch the ongoing.
But the hole UI freeze when the init a new execution.

I also tried to use a model form to display a progress bar but also this one freezes.

I am using C' to implement the UI.

thx
Marcos V. Bischoff
0 Kudos
Message 1 of 8
(4,276 Views)

Hi Marcos,

 

did you already tried the shipped simple C user interface?

There you can also start multiple executions by clicking the run button multiple times.

Does this freeze too? I cannot se this behaviour here.

Regards
DianaS
0 Kudos
Message 2 of 8
(4,256 Views)

Hi,

 

What do you set the executionTypeMaskParam as?

 

 

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

@DianaS
yes, also inb the ui examples the ui itself freezes, while perfoming what ever Code lies under the INsertCommandsInMenu call for the EntryPoint Item.
Therefore possibly ther is acutally nothing to avoid this "freezing".

 

thx
Marcos V. Bischoff
0 Kudos
Message 4 of 8
(4,247 Views)

@Ray Farmer
This is my call:

this.axExecViewMgr.Execution = this.axAppMgr.GetEngine().NewExecution(

                                                           axAppMgr.OpenSequenceFile(currentTestExec.SequenceFile),

                                                           "Single Pass",

                                                           axAppMgr.GetEngine().GetStationModelSequenceFile(out str_temp),

                                                           false,

                                                           ExecutionTypeMask.ExecTypeMask_CloseWindowWhenDone|ExecutionTypeMask.ExecTypeMask_InitiallySuspended,           

                                                           null,

                                                           null,

                                                           null);

I use the Initially suspended option to control the start of the actual excution myself and the CloseWindow when done to autoclose afterwards.
Is there a better way to init a Execution?

thx
Marcos V. Bischoff
0 Kudos
Message 5 of 8
(4,245 Views)

Can you attach your project to have a closer look at it and observe the freezing?

Regards
DianaS
0 Kudos
Message 6 of 8
(4,231 Views)

@DianaS
Sorry no can do.

we have a strict convention not to disclose code. i will look into it to set up a project, to stub our essential code parts.

 

thx
Marcos V. Bischoff
0 Kudos
Message 7 of 8
(4,197 Views)

Marcos,

 

i suspect that the freeze is generated by heavy access of the harddrive. If this is the case, i would say that your loading options for the modules (default: Preload when  execution begins) are not a lucky choice. In this case, you should split up the loading of your modules to different settings.

 

hope this helps,

Norbert

 

EDIT:

this.axExecViewMgr.Execution = this.axAppMgr.GetEngine().NewExecution(

                                                           axAppMgr.OpenSequenceFile(currentTestExec.SequenceFile),

                                                           "Single Pass",

                                                           axAppMgr.GetEngine().GetStationModelSequenceFile(out str_temp),

                                                           false,

                                                           ExecutionTypeMask.ExecTypeMask_CloseWindowWhenDone|ExecutionTypeMask.ExecTypeMask_InitiallySuspended,           

                                                           null,

                                                           null,

                                                           null);

If you always load the sequence file in the new execution command, my suspicion seems more and more to hit the nail on the head.....

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 8 of 8
(4,188 Views)