GpibInterface(string, AccessModes, int, bool)
- Updated2026-08-05
- 1 minute(s) read
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
| Name | Type | Description |
|---|---|---|
| resourceName | string | String that describes a unique VISA resource. |
| accessModes | AccessModes | The modes by which the resource is to be accessed. |
| openTimeout | int | 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. |
| checkResourceType | bool | 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. |