LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System Exec and Call Library Function problems

I have working c code. The code connects to a server; makes a request; and gets a return.  It works from the command line. In LV there are problems.  If I try running it using the System Exec vi, I get the response I expect but not until the connection with the server is broken. This is unacceptible and not the way it works from the command line.

If I try to use the Call Library Function Node, the response is even stranger.  I just call the routine that is supposed to connect to the server. It fails.

I attached the vi's. As you will see, they are very simple.
Download All
Message 1 of 4
(2,947 Views)

Hi exo,

i think you should insert the "cmd /c" into your command. More informations are available in the LabView example "Calling System Exec.vi".

Mike

0 Kudos
Message 2 of 4
(2,933 Views)
I don't have access to the example; apparently, I didn't buy an expensive enough version. I tried adding /c but it didn't help either.
0 Kudos
Message 3 of 4
(2,925 Views)
exo,

Here is the example Mike was referring to.  Let me know if it helps at all.

Brian T
Applications Engineer
0 Kudos
Message 4 of 4
(2,912 Views)