Control class/Attach DataSocket method

From LabVIEW Wiki
Jump to: navigation, search
VI Server Method Information
Method ID 6331C06
Scope Basic Development Environment
Data Name AttachDataSocket
Short Name* AttachDataSocket
Long Name* Attach DataSocket
* Displayed here in English. Short and Long names appear in the language of the LabVIEW IDE.
Owning Class ID 6
Owning Class Name Control Class
Return Data Type No return value
Invoke Node Attach DataSocket
Available in Real-Time Operating SystemYes
Available in Run-Time EngineYes (Read/Write)
Loads the block diagram into memoryNo
Loads the front panel into memoryNo
Need to authenticate before useNo
Remote access allowedYes
Settable when the VI is runningNo

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

Data type Name Required Description
String URL Yes Specifies the URL to establish a connection.
Enum U32 Mode Yes Specifies the mode of the connection. The connection mode can be No DataSocket, Publish, Subscribe, or Publish & Subscribe.
Boolean Enabled Yes Specifies if a connection is enabled.

Uses

History

Version Change(s)
LabVIEW 2018 More info to come.

See Also

External Links