Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

System Exec with ping freezes when called from a webservice

I have a VI that calls System Exec.vi. The command sends out a couple pings: ping -c 2 localhost. It works fine when I run it outside the webservice but once I call it from within the service, it hangs indefinitely. Here's simple code reproducing this with a 9603 and LV2022Q3

InfiniteNothing_0-1790986233470.png

 

CLED (2016)
0 Kudos
Message 1 of 2
(477 Views)

I made a service request for this issue and we weren't able to find a resolution but we found a couple possible workarounds:

  • Sending just 1 ping was fine. e.g. ping -c 1 -n -W 1 127.0.0.1.
  • We also discussed, but I did not test, moving the code outside the webservice and transferring data with a global or a named queue.

The CAR for this issue is: 4134037

CLED (2016)
0 Kudos
Message 2 of 2
(201 Views)