LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Launching DS Server from compiled app

My app uses DataSockets to communicate between a host and an RT board plugged into that host.

The examples all use the VI "Launch DS Server if Local URL.vi" to start up the DS Server if the URL is local, and if running on Windows. This code works by opening a VI reference to a hard-coded path: "vi.lib\Platform\dataskt.llb\DataSocket Server Control.vi".

My program does that and it works. But I need to build a compiled app, so the VI.library won't exist on my customer's machine.

I have read this question and answer but I want to know more.


1... Why do they use this roundabout way of calling the VI ? Why not call the "Server Control" vi directly?
2... I can guarantee my app will be used on Windows only, and the connections I make will be on the local host. therefore I can safely bypass the checks. Any reason I can't simply place the SERVER CONTROL VI on my diagram, and be done with it? App or no app, this should work, right?
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 1 of 3
(2,738 Views)
Hi,
you can modify Launch DS Server if Local URL.vi so that it includes in its diagram the Server Control.vi, without calling it dinamically; it should work.
I just want to add that you can dinamically call a vi included in an .exe by the Open Vi Reference, the vi path should be like: c:\sample.exe\sample.vi.
Only for the records: rename a .exe file to .llb, you will see it contains all the vis embedded to build the .exe.

Good luck,

Alberto
Message 2 of 3
(2,738 Views)
I'm going to embed the Server Control VI in my code. I know it works, I've tried it.

Just wondering why they went the long way...
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 3 of 3
(2,738 Views)