Singer Instruments PIXL Client
GetPIXLChannel(String,Int32) Method
Example 



SI.PIXL.Client Namespace > PIXLClient Class > GetPIXLChannel Method : GetPIXLChannel(String,Int32) Method
The IP address of the PIXL. The IP address of the PIXL can be found in the 'Settings > API' section of the PIXL software.
The PIXL's gRPC port. The default port is 50052, this can be found in the 'Settings > API' section of the PIXL software.
Get a channel to a PIXL. This will get a channel based on a socket.
Syntax
'Declaration
 
Public Overloads Shared Function GetPIXLChannel( _
   ByVal host As String, _
   ByVal port As Integer _
) As Grpc.Core.Channel
'Usage
 
Dim host As String
Dim port As Integer
Dim value As Grpc.Core.Channel
 
value = PIXLClient.GetPIXLChannel(host, port)
public static Grpc.Core.Channel GetPIXLChannel( 
   string host,
   int port
)
public:
static Grpc.Core.Channel^ GetPIXLChannel( 
   String^ host,
   int port
) 

Parameters

host
The IP address of the PIXL. The IP address of the PIXL can be found in the 'Settings > API' section of the PIXL software.
port
The PIXL's gRPC port. The default port is 50052, this can be found in the 'Settings > API' section of the PIXL software.

Return Value

The channel to the PIXL.
Example
This sample shows how to call the GetPIXLChannel(String,Int32) method.
// Get a gRPC channel for the PIXL at a known port.
var channel = PIXLClient.GetPIXLChannel("127.0.0.1", 50052);
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PIXLClient Class
PIXLClient Members
Overload List