LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any way to run the datasocket server from the vi

I want to run the datasocket server from the LabVIEW program and is there any command to do this. Because, I built one application vi and this vi is link with another vi using datasocket.So every time before i run the program, i need to run the data socket server. So if i forget to run the datasocket server, I need to restart my vi. So what I want to do is I want to run the data socket server, when i open this VI. So that I do not forget. Thanks.
Saw.
0 Kudos
Message 1 of 3
(3,438 Views)
In the examples\comm folder there is a file called datasktxwin.llb In that library open e.g. DS 3D Graph Writer...launch it and you will see that it launches the data socket server. Take a look at the code and you'll find a VI that launches the server; "Launch DS server if Local URL.vi".

If you know the path to the server executable you can always launch it using the System Exec.vi from the communication palette too. The typical command line would then be:

C:\Program Files\National Instruments\DataSocket\cwdss.exe
Message 2 of 3
(3,438 Views)
Thanks Mads.
Now my vi becomes better.

Saw Naing Aye
0 Kudos
Message 3 of 3
(3,438 Views)