ParallelPollConfigure 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)

Board Class See Also


Configures the specified device to respond to parallel polls by asserting or not asserting the GPIB data line.

Namespace: NationalInstruments.NI4882

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

Syntax

Visual Basic (Declaration)
Public Sub ParallelPollConfigure ( _
	address As Address, _
	dataLine As Integer, _
	lineSense As Integer _
)

C#
public void ParallelPollConfigure(
	Address address,
	int dataLine,
	int lineSense
)

Parameters

address
Type: NationalInstruments.NI4882.Address
Address of the device to be configured.
dataLine
Type: System.Int32
Data line (a value in the range of 1 to 8) on which the device responds to parallel polls.
lineSense
Type: System.Int32
Sense (either 0 or 1) of the parallel poll response.

Exceptions

ExceptionCondition
GpibException The NI-488.2 driver returns an error as a result of calling this method.
ArgumentException

The address parameter is invalid.

-or-

dataLine is not in the range 1 to 8.

-or-

lineSense is not 0 or 1.

DllNotFoundException The NI-488.2 driver library cannot be found.
EntryPointNotFoundException A required operation in the NI-488.2 driver library cannot be found.
InvalidOperationException

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

A different process owns a lock for the interface.

-or-

Nonexistent GPIB interface.

-or-

Asynchronous I/O operation in progress.

-or-

The interface board is not Controller-In-Charge.

-or-

DMA error.

-or-

GPIB bus error.

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

Remarks

If lineSense equals the individual status (IST) bit of the device, the assigned GPIB dataLine is asserted during a parallel poll. Otherwise, the dataLine is not asserted during a parallel poll. The Controller can use parallel polling to obtain 1-bit, device-dependent status messages from up to eight devices simultaneously.

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

See Also

Reference

Board Class

NationalInstruments.NI4882 Namespace

WAS THIS ARTICLE HELPFUL?

Not Helpful