NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

My custom C# userInterface hangs/locks when trying to launch parallel sequences ...

Hi all,

 

I have build my own TestStand userInterface in C# this way :

 

  • One main form which contains the axApplicationManager
  • N tabpages containing each
    • One axSequenceViewManager
    • One axExecutionViewManager
  • My process model is "Sequential process model"

The aim of this architecture is to be abble to launch multiple sequences in parallel, one on each tabPage.

On each tabPage i have to run a different sequence, and i force the main sequence parameters before launching them.

 

My application works sometimes well, but sometimes it hangs completely ! Smiley Mad

When i launch the sequences in a sequential way, there is no problem. Smiley Happy (Sequence 1 executes on tabpage1, after completion i launch the sequence 2 on tabpage2 ... and so on ... )

 

I have tryed to "Mutex" (using a lock on a static object) the AxObjects access (Calls, events ... )

=> But it still hangs !!!! Smiley Sad

 

Does parallel userInterfaces examples exists somewhere ? (In C# or VB.net)

 

I have read in the online help that using "UIEvents" in C# must be followed by an acknoledge call !! This made my application hangs directly !

 

I have also put a timer on my main form, in order to call the garbage collector every 500ms.

I also force all Teststand object references to NULL after each use.

 

Have you some ideas ?

Manu.net
0 Kudos
Message 1 of 2
(2,893 Views)

Hi all,

 

Here is the solution to my problem ...

 

HANG CALLBACK SELECT

 

Manu.net

Manu.net
0 Kudos
Message 2 of 2
(2,880 Views)