GetAttributeString Method

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

Edition Date: August 2012

Part Number: 370627F-01

»View Product Info
Download Help (Windows Only)

Session Class See Also


Provides direct read access to the NI-VISA driver-level attributes of String data type.

Namespace: NationalInstruments.VisaNS

Assembly: NationalInstruments.VisaNS (in NationalInstruments.VisaNS.dll) Version: 13.0.40.167

Syntax

Visual Basic (Declaration)
<EditorBrowsableAttribute(EditorBrowsableState.Never)> _
Public Function GetAttributeString ( _
	attribute As AttributeType _
) As String

C#
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public string GetAttributeString(
	AttributeType attribute
)

Parameters

attribute
Type: NationalInstruments.VisaNS.AttributeType
NI-VISA driver-level attribute to read.

Return Value

Value of the NI-VISA driver attribute requested with attribute.

Exceptions

ExceptionCondition
VisaException The NI-VISA driver returned an error as a result of calling this method.
DllNotFoundException The NI-VISA driver library cannot be found.
EntryPointNotFoundException A required operation in the NI-VISA driver library cannot be found.
InvalidOperationException The specified attribute is not defined.
ObjectDisposedException This member is called after the Dispose method is called directly from code or indirectly through a finalizer.

Remarks

This method is provided only for extensibility. You should use this method if there is no property on the API corresponding to the NI-VISA attribute that you are interested in. When the API is updated to contain the NI-VISA attribute that you desire, update your program to use the property instead.

See Also

Reference

Session Class

NationalInstruments.VisaNS Namespace

WAS THIS ARTICLE HELPFUL?

Not Helpful