03-19-2012 04:17 AM
LabVIEW 8.5, TestStand 4.0, Windows XP-SP3
The issue I’m facing is a different behavior of a LabVIEW VI whether it is called independently (in the LabVIEW environment: normal behavior) or from TestStand (unexpected behavior).
In the same VI, I've wired in parallel, so they can execute in parallel:
Just to be more precise for those who’d try reproducing the issue (but you might just have a look at the enclosed VI): in my case the program is the command line WinSCP.com. WinSCP prompts when it wants you to accept the host’s private key which is not in its cache. Don’t be afraid if you’re not used to WinSCP, the concern here is LabVIEW + TestStand.
What happens when we’re stuck in the “System Exec”:
For information, all tasks: TestStand (SeqEdit), LabVIEW and program (WinSCP) show 0% CPU and their memory usage is stable.
Have you an explanation for this unexpected / different behavior of the VI, only because it is called from TestStand?
Enclosed is the VI.
If you actually want running it, you might have WinSCP installed and a valid session to an accessible host (adapt path to WinSCP and session name), and do not put the host key in the cache!
Note: you won't see the same issue with other programs or commands called by System Exec (e.g. netsh, ftp...) even if they await a user's prompt.
Thanks for your help!
Solved! Go to Solution.
03-19-2012 07:33 AM
Have you tried changing the Preferred Execution System of the VI from 'same as caller' to 'other1'.
03-19-2012 08:39 AM
Hi Ray,
Yes, great!
Now I tried with Preferred Execution System = “other1” and the while loop isn’t stuck anymore => that’s the solution.
If you have time, could you send me a short explanation why?
I didn't worry about Preferred Execution System values before, I think I’ll have to search more information about this.
Thanks again,