LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Exec+.vi & timeout function...

came across this thread doing a search

 

http://forums.ni.com/ni/board/message?board.id=170&message.id=125084&query.id=66797

 

and noticed the OP mentionted the Exec+.vi that is similar to the system exec.vi however has a timeout function...  I need it and cant find it.  all of my web searching keeps returning links to the system exec.vi references.  Can anyone point me to it?

 

I am running a dos app that hangs for some reason and I need my program to give a timeout error and move on...

 

thanks...

0 Kudos
Message 1 of 5
(2,825 Views)

Hi steve05ra...,

see this link please.

 

Hope it helps.

Mike

Message 2 of 5
(2,811 Views)

nope, doesnt help... the system exec+.vi does not return the std out & error as the system exec.vi does, both of which I need.

 

Problem is while using the sys exec vi to ssh into a uut it hung while waiting to complete leaving the s/w stuck.  I need to be able to allow it to time out and move on.

0 Kudos
Message 3 of 5
(2,787 Views)
You might try piping the output from your system call to a file, and then polling the contents of the file to see if/when it returns. Or, you could use the exec+.vi with a pipe to file, then wait untill the timeout and check the file just once to see if the required output has been made. Just a thought.
Asa Kirby
CompactRIO Product Marketing Manager
________________
Sail Fast!
Message 4 of 5
(2,769 Views)

I actually tried something like that at one point however I dont recall if I had the piping to a file setup like I currently have now.  I just recall it working alot better when I waited for the call to finish like it is setup now.  overall it works great unless it hangs like it did Sunday.  On that test run it ran for approx 3 days with hundreds of dos calls during that period and worked awesome...  this program needs to run for approx 37 days for each pair of UUT's (6 uut's total).

 

thanks, I'll make the change...

0 Kudos
Message 5 of 5
(2,758 Views)