Provides access to the device-level GPIB functionality that is available in VISA.

Derives from

Syntax

Namespace: NationalInstruments.Visa

public class GpibSession : MessageBasedSession, IGpibSession

Constructors

NameDescription
GpibSession(string, AccessModes, int, bool)

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

GpibSession(string, AccessModes, int)

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

GpibSession(string)

Initializes a new instance of the GpibSession object from the specified resource name.

Properties

NameDescription
AllowDma

Specifies whether direct memory access is enabled. In some cases you may not be able to change whether DMA is enabled, so reading this property value may not return the same value that was set.

PrimaryAddress

Gets the primary address of the GPIB device used by this session.

ReaddressingEnabled

Specifies whether to use repeat addressing before each read or write operation. In some cases you may not be able to change the readdressing behavior, so reading this property value may not return the same value that was set.

RenState

Gets the current state of the GPIB REN (Remote ENable) interface line.

SecondaryAddress

Gets or sets the secondary address of the GPIB device used by this session.

UnaddressingEnabled

Specifies whether to unaddress the device (UNT and UNL) after each read or write operation.

Methods

NameDescription
SendRemoteLocalCommand(RemoteLocalMode)

Places the GPIB instrument into the specified local or remote mode.

SendRemoteLocalCommand(GpibInstrumentRemoteLocalMode)

Controls the state of the GPIB REN interface line and, optionally, the remote/local state of the device.