SetAttributeInt64 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 write access to the NI-VISA driver-level attributes of Int64 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 Sub SetAttributeInt64 ( _
	attribute As AttributeType, _
	attributeValue As Long _
)

C#
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public void SetAttributeInt64(
	AttributeType attribute,
	long attributeValue
)

Parameters

attribute
Type: NationalInstruments.VisaNS.AttributeType
NI-VISA driver-level attribute to write.
attributeValue
Type: System.Int64
New value to assign the NI-VISA attribute.

Exceptions

ExceptionCondition
VisaException The NI-VISA driver returned an error as a result of calling this method.
ArgumentException The specified state of attribute is not valid.
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.

-or-

The specified attribute is read-only.

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