Initializes a new instance of the GpibInterface object from the specified resource name, access modes, and initialization timeout value.

Syntax

Namespace: NationalInstruments.Visa

public GpibInterface(string resourceName, AccessModes accessModes, int openTimeout)

Remarks

This constructor ensures that the resource string represents a GPIB INTFC resource and throws a ResourceTypeMismatchException if the resource string represents an incorrect resource.

Parameters

NameTypeDescription
resourceNamestring

String that describes a unique VISA resource.

accessModesAccessModes

The modes by which the resource is to be accessed.

openTimeoutint

The maximum time in milliseconds that this method waits to open a VISA session with the specified resource. This parameter does not set the TimeoutMilliseconds property of the initialized instance.