|This Document is not yet Rated
How do I Know Who is Connected to a Remote Front Panel?
Primary Software Version:
Primary Software Fixed Version:
I need to know what users are connected to my remote front panel and when they connected. How can I determine the users' identity and the time of their connection to the remote front panel?
To determine the clients connected to a remote front panel, use either the Remote Panel: Connections To Clients
property or the Remote Panel: Client Connections
Remote Panel: Connections To Clients Property
This property is part of the Application class, meaning that it returns all client connections to the Application as a whole. When run in the LabVIEW development environment, this would show all client connections to any VI that is running. When run in a stand-alone executable, this would show all client connections to any VI that is running as part of that executable.
To place a Remote Panel: Connections to Clients property:
- Place a Property Node on the Block Diagram
- Right-click on the node, choose Select Class and set it to VI Server»Application
- Left-click on the node and select Remote Panel»Connections to Clients
The end of this article contains specific information about the output from the Remote Panel: Connections to Clients property node
Remote Panel: Client Connections Method
This method is of the VI class, meaning that returns all client connections to the specific VI it is located within. The result that occurs when run in the LabVIEW development environment is the same as when run in a stand-alone executable. While in most situations these two properties/methods will return the same data, the Remote Panel Client Connections method is recommended because it is more specific.
To Place a Remote Panel Client Connections Method:
- Place an Invoke Node on the Block Diagram
- Right-click the node, choose Select Class, and set it to VI Server»VI»VI
- Left-click on the node and select Remote Panel»Client Connections
The Client Connections method has two outputs, Connections and Controller, as shown in the diagram below. The Connections output provides an array of clusters containing the same information about each client as the Connections to Clients property. The Controller output provides information on which client is currently in control of the VI.
The Connections output of both nodes is an array of clusters with the following information for each of the clients:
Related Links: KnowledgeBase 364COE5Z: How Do I Control the Number of Clients Remotely Connected To My VI? KnowledgeBase 3K7COT23: Remote Front Panel Image Does Not Reflect Property Node Changes that Occur Prior to Connection
- VI Name: Name of the VI on the server that the client is viewing or controlling.
- Remote: IP address of the client.
- UserName: User name of the client connected to the server computer.
- Port: Port number currently being used by the client computer.
- Status: An enumeration type that specifies the controlling status of the connection.
- Create Time: A time stamp that specifies in seconds when the connection was created.
- Status Time: A time stamp that specifies in seconds when the client changed to its current connection status.
- Control End Time: A time stamp that indicates when the server will regain control of the VI or transfer control to another client.