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

NameTypeDescription
resourceNamestring

String that describes a unique VISA resource.

accessModesAccessModes

Mode by which the specified VISA resource is 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.