MessageBasedSession(string, AccessModes, int)
- Updated2026-08-05
- 1 minute(s) read
Initializes a new instance of the MessageBasedSession object from the specified resource name, access modes, and timeout.
Syntax
Namespace: NationalInstruments.Visa
protected MessageBasedSession(string resourceName, AccessModes accessModes, int openTimeout)
Parameters
| Name | Type | Description |
|---|---|---|
| resourceName | string | String that describes a unique VISA resource. |
| accessModes | AccessModes | Mode by which the specified VISA resource is 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. |