Attach DataSocket Method
Short Name: AttachDataSocket
Installed With: Base Package
Class: Control Methods
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. |
Parameters
Name | Required | Description |
---|---|---|
URL | No | Specifies the URL to establish a connection. |
Mode | No | Specifies the mode of the connection. The connection mode can be No DataSocket, Publish, Subscribe, or Publish & Subscribe. |
Enabled | No | Specifies if a connection is enabled. |
Remarks
The following table lists the characteristics of this method.
Available in Run-Time Engine and Real-Time Operating System | Yes (Read/Write) |
Settable when the VI is running | No |
Loads the front panel into memory | No |
Need to authenticate before use | No |
Loads the block diagram into memory | No |
Remote access disallowed | No |
Must wait until user interface is idle | No |
Available with control VIs | No |
Available with global VIs | No |
Available with strict type definitions | Yes |
Available with polymorphic VIs | No |