SerialPoll Method

NI-488.2 .NET Class Library Help for Visual Studio 2010

Edition Date: August 2012

Part Number: 370628F-01

»View Product Info
Download Help (Windows Only)

Device Class See Also

Conducts a serial poll.

Namespace: NationalInstruments.NI4882

Assembly: NationalInstruments.NI4882 (in NationalInstruments.NI4882.dll) Version:


Visual Basic (Declaration)
Public Function SerialPoll As SerialPollFlags

public SerialPollFlags SerialPoll()

Return Value

Serial poll response byte.


GpibException The NI-488.2 driver returns an error as a result of calling this method.
DllNotFoundException The NI-488.2 driver library cannot be found.
EntryPointNotFoundException A required operation in the NI-488.2 driver library cannot be found.

The inner exception is set to the GpibException due to one of the following conditions:

A different process owns a lock for the interface.


Nonexistent GPIB interface.


Asynchronous I/O operation in progress.


The interface board is not Controller-In-Charge.


DMA error.


GPIB bus error.


The serial poll response could not be read within the serial poll timeout period.

ObjectDisposedException This member is called after the Dispose method has been called directly from your code or indirectly through a finalizer.


This method returns the serial poll response byte. If bit 6 (hex 40) of the response is set, the device is requesting service. When the automatic serial polling feature is enabled, the device might have already been polled. In this case, SerialPoll returns the previously acquired status byte.

For more information about serial polling, refer to the Serial Polling Overview in the NI-488.2 User Manual.

See Also


Device Class

NationalInstruments.NI4882 Namespace


Not Helpful