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

Syntax

Namespace: NationalInstruments.Visa

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

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.

checkResourceTypebool

If set to true, the constructor ensures that the resource string represents a GPIB INTFC resource and throws a ResourceTypeMismatchException if the resource string represents an incorrect resource. If set to false, the resource string can be any valid VISA resource.