LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Computer name vs strict IP address in in windows shell

Hi,

I'm trying to call an external exe file from LV. This file is a shell file and as a result it returns a string and %ERRORLEVEL%. The syntax is:

pslist "explorer" \\SQL3 -u USERNAME -p PASSWORD

When I run it in development mode everything is OK. However, when I build my LV application it stops working. But it works as the LV application when I put strict IP address instead or computer name.

 

IP addres or computer name doesn't matter when I replace pslist.exe with ordinary "ping" command.

 

Does someone know what's going on?

K
0 Kudos
Message 1 of 4
(3,307 Views)

Hi K,

 

It is quite difficult to guess what is going on at the moment, you mentioned your application "stops working" but it works if you use an IP address. What do you mean by your application stops working? Does the VI run, does it fail at a particular stage in execution?

 

Best wishes,

Ben L
Field Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,177 Views)

Hi,

 

Sorry for not clear explanation.

 

By 'it stops' working I meant that sub VI responsile for calling shell and executing that command executes that command, returns 0 %ERRORLEVEL% variable. However that command internally can't reach the pinged host and despite that 0 %ERRORLEVEL% the pslist.exe command didn't work (is not executed nor is executed properly).

 

 It seems to be that during compilation the hosts recognition by computer name is somehow encapsulated (disabled?).

 

Kamil

0 Kudos
Message 3 of 4
(3,154 Views)

Hi Kamil,

 

I have taken over this Service Request as Ben has moved to another department. Could you possibly provide an example project of this problem so that we have something that we can look at? 

 

Please correct me if I have misunderstood your email but I get the impression that the external exe is not working. Who produces this external exe? Are you using any additional technology like ActiveX? Have you checked your file name calls (by this I mean have you checked that the directory structure is the same)?

 

Please let me know your thoughts,

 

Many thanks,

Andrew McLennan
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,055 Views)