Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Attach DataSocket Method

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Short Name: AttachDataSocket

Requires: Base Development System

Class: Control Methods

To Use: Create a method.

National Instruments recommends using front panel data binding through the Shared Variable Engine or using the Bind To Network Path method to attach a data connection to a control.

This method allows you to attach an opc, ftp, and http connection to a control on Windows, and a dstp and file connection to a control on all LabVIEW-supported platforms. You can add new connections only at edit time.

This method is similar to the Data Binding Selection, Path, and Access Type options on the Data Binding page of the Properties dialog box.

Note  If you use this method with a Boolean control in a radio buttons control, this method returns an error.


Data typeNameRequiredDescription
URLYesSpecifies the URL to establish a connection.
ModeYesSpecifies the mode of the connection. The connection mode can be No DataSocket, Publish, Subscribe, or Publish & Subscribe.
EnabledYesSpecifies if a connection is enabled.


The following table lists the characteristics of this method.

Data typeNo return value
Available in Run-Time EngineYes (Read/Write)
Available in Real-Time Operating SystemYes
Settable when the VI is runningNo
Loads the front panel into memoryNo
Need to authenticate before useNo
Loads the block diagram into memoryNo
Remote access allowedYes
Must wait until user interface is idleNo
Available with control VIsNo
Available with global VIsNo
Available with strict type definitionsYes
Available with polymorphic VIsNo


 Was this document helpful?  submit
  Helpful Not Helpful