Remote Panel:Open Connection To Server Method

LabView Local Project Settings

Remote Panel:Open Connection To Server Method

Short Name: RP.Open Connection To Server

Installed With: Full Development System

Class: Application Methods

Opens a connection to a server and displays the front panel of a VI on the server computer. You also can request control of the front panel.

This method is similar to the Connect to Remote Panel dialog box.

This method can return networking error codes.

Example

Parameters

NameRequiredDescription
VI NameNoName of the VI on the server to which you want to connect. To specify a VI that is part of a LabVIEW project, you must include the project name, the project library, and the target in the path of the VI, when applicable. For example, if MyVI.vi resides in a project called MyProject.lvproj under target My Computer, enter the VI name as MyProject.lvproj/My Computer/MyVI.vi. If the VI resides in a project library called MyLibrary, also include the project library in the path, as in MyProject.lvproj/My Computer/MyLibrary.lvlib:MyVI.vi. If the VI is not in a project or project library, you can enter the VI name without any additional information.
Server AddressNoIP address or computer name of the server.
Server PortNoPort on which the Web Server is located.
Request ControlNoIf TRUE (default), the client requests control of the front panel immediately after opening a connection to the server. The server queues the request if another client currently controls the front panel.

Remarks

The following table lists the characteristics of this method.

Available in Run-Time Engine and Real-Time Operating SystemYes (Read/Write)
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 disallowedYes
Must wait until user interface is idleYes
Available with control VIsNo
Available with global VIsNo
Available with strict type definitionsNo
Available with polymorphic VIsNo

Example

Refer to the RemotePanelMethods-Client VI in the labview\examples\remotepanel directory for an example of using the Remote Panel:Open Connection To Server method.

 Open example  Browse related examples