LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Use of DataSocket functions without full DataSocket install

We use DataSocket functions in our application with psp; As far I'm aware, it is the only way to dynamically create shared variables in a runtime system.  If I'm wrong about that, please let me know.  We are not using the DataSocket server at all.  I'd love to be able to distribute our application without including the DataSocket Server or DataSocket Server Manager.  Anybody know if there is a way to do that?

0 Kudos
Message 1 of 4
(2,920 Views)

Hi codeman,

 

There are a number of ways to do this, but most use one toolkit or another. I think this might be more or less what you're looking for: http://forums.ni.com/t5/Example-Program-Drafts/Programmatically-Create-Shared-Variable-Engine/ta-p/3...

 

That example uses only low-level VIs, so you shouldn't need to deploy anything else.

William R.
0 Kudos
Message 2 of 4
(2,843 Views)

Thanks for the reply, but unfortunately this example and all others I've seen use scripting which is not available in the LabVIEW Run-Time Engine, only in the development environment; so it's not a viable alternative.  I have no problem using the DataSocket functions for the purpose, I'd just like to be able to distribute my application without having to include the DataSocket server and manager.  I would think that there would be some subset of datasocket dll's and llbs that could be included in my installer, but I haven't yet figured it out.

0 Kudos
Message 3 of 4
(2,835 Views)

Hmm... good point. I didn't see the blue nodes and didn't check the VI for compilation. The variable libraries are XML files, so you might be able to edit them programmatically and redeploy the library, but I haven't had time to test that.

 

I can dig around a little more and see about the Datasocket functions, but I suspect that deploying libraries is a function of the server, so I wouldn't be too hopeful. I'll see what I can find.

William R.
0 Kudos
Message 4 of 4
(2,818 Views)