NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Parallel sequence Hang when using Select string in CallBacks

Hi,

 

I have posted a problem yesterday explainig that my custom interface in C# was Hanging/Locked when using parallel executions. Smiley Mad

=> My application works fine when i run the sequences sequentially.Smiley Indifferent

 

So i have followed my investigations and i found the origin of the problem.Smiley Sad

 

In my application i use a special process model with 2 callbacks : 

 

  • ProcessModelPreStep
  • ProcessModelPostStep

In these callbacks i had to look for a special step. So i write something like :

 

SELECT RunState.Caller.Step.StepType.Name

CASE "XXXXX"

....

End

CASE "YYYY"

....

End

End

 

I do replace this syntax by :

 

IF StrComp( RunState.Caller.Step.StepType.Name , "XXXXX" ) == 0

...

End

IF StrComp( RunState.Caller.Step.StepType.Name , "YYYY" ) == 0

...

End

 

And then the application hangs no more !!!! Smiley Happy

 

This problem can be viewed directly with TestStand using a parallel processModel containing the callbacks with the select ....

 

Here are 2 files which can reproduce the problem easily ...

 

Manu.net

 

Manu.net
Download All
0 Kudos
Message 1 of 3
(3,035 Views)

Hello,

 

Thank you Manu for your trick. I am sure it will help.

The original post is here.

Jean-Philippe C.
National Instruments France

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

Manu.net -

 

From your sequence files, it looks like you're using TestStand 2010. I believe you might be running into Known Issue 276979 which was fixed in TestStand 2010 SP1.

 

Hope this helps.

Manooch H.
National Instruments
0 Kudos
Message 3 of 3
(2,972 Views)