GpibSession Class
- Updated2026-08-05
- 1 minute(s) read
Provides access to the device-level GPIB functionality that is available in VISA.
Derives from
- MessageBasedSession
- IGpibSession
Syntax
Namespace: NationalInstruments.Visa
public class GpibSession : MessageBasedSession, IGpibSession
Constructors
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| 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. |