Attach DataSocket Method

Inherits from Generic»GObject»Control Methods.

Allows you to attach a DataSocket to a control. Similar to the Front Panel DataSocket dialog. New DataSockets can only be added at edit time. At runtime, this method can change an existing DataSocket.

The following table lists the parameters for this method.

ParametersDescription
urlString where you specify the URL to establish a DataSocket connection. Refer to Valid URLs for a DataSocket Connection for more information about the types of valid DataSocket URLs.
modeMode of the DataSocket connection. Options are: No DataSocket, Publish, Subscribe, or Publish and Subscribe.
enabledSpecifies if DataSocket is enabled.

The following table lists the flags for this method.

Is settable when the VI is runningNo
Requires the block diagram to be loadedN/A
Is available on local LabVIEW onlyN/A
Requires the front panel to be loadedN/A
Must wait until user interface is idleN/A
Is available with control VIsN/A
Is available with global VIsN/A
Is available with strict type definitionsNo
Is available with polymorphic VIsN/A
Available in Run-Time EngineYes (Read/Write)