Singer Instruments PIXL Client
PIXLClient Constructor(Channel)
Example 



SI.PIXL.Client Namespace > PIXLClient Class > PIXLClient Constructor : PIXLClient Constructor(Channel)
The gRPC channel the device is on.
Initializes a new instance of the PIXLClient class. This will attempt to connect the client to the PIXL and synchronize all properties.
Syntax
'Declaration
 
Public Function New( _
   ByVal channel As Grpc.Core.Channel _
)
'Usage
 
Dim channel As Grpc.Core.Channel
 
Dim instance As New PIXLClient(channel)
public PIXLClient( 
   Grpc.Core.Channel channel
)
public:
PIXLClient( 
   Grpc.Core.Channel^ channel
)

Parameters

channel
The gRPC channel the device is on.
Example
This sample shows how to call the PIXLClient Constructor(Channel) constructor.
// Get a gRPC channel for the PIXL at a known port.
var channel = PIXLClient.GetPIXLChannel("127.0.0.1", 50052);
             
// Check that the channel is not null.
if (channel == null)
    throw new NullReferenceException("The gRPC channel for the PIXL is null.");
             
// Create a new instance of the PIXL class.
var pixl = new PIXLClient(channel);
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