LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change Data Socket at Runtime

Hello.

I want to write a VI that can be called dynamicly from multiple locations (displaying the panel). The VI needs to be able to set up the data socket connections based on a configuration file. THe data socket connection property is exposed, but it does not seem to work at run time. Is there a way to do this?

Thank you,
Peter Laskey
peter.laskey@jdsu.com
0 Kudos
Message 1 of 2
(2,766 Views)
Hi Peter,

If I understand your question correctly, are you asking how to programmatically configure the LabVIEW datasocket server? If so, you’ll probably be interested in the following knowledgebase article:

KB 247DN4SG: How Can I Programmatically Launch and Close DataSocket Server from LabVIEW 6.x or 7.x...

You’ll want to use the “Launch DS Server if Local URL.vi” and you can feed the contents on your configuration file into the VIs inputs.

Let me know if I didn’t understand your question correctly. I will be more than happy to answer any additional questions you have.

Kileen
0 Kudos
Message 2 of 2
(2,750 Views)