| Keysight.Visa Namespace > UsbSession Class > UsbSession Constructor : UsbSession Constructor(String,AccessModes,Int32) |
'DeclarationPublic Function New( _ ByVal resourceName As String, _ ByVal accessModes As AccessModes, _ ByVal timeoutMilliseconds As Integer _ )
'UsageDim resourceName As String Dim accessModes As AccessModes Dim timeoutMilliseconds As Integer Dim instance As New UsbSession(resourceName, accessModes, timeoutMilliseconds)
public UsbSession( string resourceName, AccessModes accessModes, int timeoutMilliseconds )
public: UsbSession( String^ resourceName, AccessModes accessModes, int timeoutMilliseconds )
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