| Keysight.Visa Namespace > TcpipSession Class > TcpipSession Constructor : TcpipSession Constructor(String,AccessModes,TimeSpan) |
'DeclarationPublic Function New( _ ByVal resourceName As String, _ ByVal accessModes As AccessModes, _ ByVal timeout As TimeSpan _ )
'UsageDim resourceName As String Dim accessModes As AccessModes Dim timeout As TimeSpan Dim instance As New TcpipSession(resourceName, accessModes, timeout)
public TcpipSession( string resourceName, AccessModes accessModes, TimeSpan timeout )
public: TcpipSession( String^ resourceName, AccessModes accessModes, TimeSpan timeout )
This constructor attempts to open a connection to the specified resource with the specified access modes and timeout.
Some Keysight IO Libraries Connection Expert settings and Keysight Instrument Discovery Service policies affect the operation of this constructor. Refer to the IO Libraries Suite Help for more details.
For instruments that are auto-discovered by the Discovery Service, the constructor verifies that the instrument is present.
For instruments that are manually-added, the constructor does not verify the presence of the instrument. If the device is not present or not turned on, you will not discover this until you attempt to communicate with the instrument.
Current with Keysight IO Libraries Suite 18