LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Parallel execution in one VI, locked when called by TestStand

LabVIEW 8.5, TestStand 4.0, Wibdows XP-SP3

 

In the same VI, I've connected in parallel:

  • a call to a System Exec, calling a program which may in some circumstances prompt for a user's answer (which will never come...)
  • a while loop, managing a timeout which finally kills the program above in the case it waits infinitely for a user's answer

Just to be more precise: in my case the program is WinSCP, which prompts when you should accept a private key which is not in its cache; but the concern here is not WinSCP but LabVIEW.

 

Of course, I test it in a case where we are stucked in System Exec.

  • This works fine when the VI is launched from LabVIEW
  • When the same VI is called in a TestStand sequence step (ActiveX automation server to the LV development system), it does not run the while loop (we're stuck in both System exec and inside the loop). The only way to release everything is to manually kill (through Windows Task Manager) the program.

 

for information, all tasks: LabVIEW, TestStand (SeqEdit) and program (WinSCP) are 0% CPU and memory.is stable.

 

Have you an explaination for this unexpected behavior of the VI when called from TestStand ?

 

Enclosed is the VI; to run it, you might have WinSCP installed and a valid session to an accessible host (here named vhe-219), but you won't have put its key in the cache!

Note: you won't see the same issue with other programs or commands (e.g. netsh, ftp...) even if they await a user's prompt.

 

Thanks for your help!

0 Kudos
Message 1 of 3
(2,556 Views)

Hi jjd,

 

I would like to have more information on "ActiveX automation server to the LV development system". Do u mean u configure the adapter of LabVIEW to use "other executable" with activeX server automation?

 

Furthemore, what are the parameter u pass to the labVIEW step? Coudl u eventually give us a screenshot of the step setting pane of your step?

 

Did u configure LabVIEW as shown in the attached picture.

 

Did u force the front panel code module to open during its call by teststand and add a stop control in the while loop to stop the VI and see if an error appears in the cluster?

 

Your problem looks like the one explicited in this document but your LabVIEW is 8.5 and not 6 which let me a little perplexed:

 

http://digital.ni.com/public.nsf/allkb/30DA650D55340F7886256A2A004E9D0A?OpenDocument

 

Try also to modify the execution property of your VI follwing this document:

 

http://digital.ni.com/public.nsf/allkb/FC0E8FA5FF69A3FD86256CDB0066412A?OpenDocument

 

regards

 

Romain DUVAL || RF & Semiconductor Staff System Engineer || CLA || CTA
National Instruments France

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

The question has been posted in the NI TestStand discussion forum as well here.

It is answered and solved.

 

Norbert

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