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

VxiSession Class See Also


Sends the device a miscellaneous command or query and/or retrieves the response to a previous query.

Namespace: NationalInstruments.VisaNS

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

Syntax

Visual Basic (Declaration)
Public Function CommandQuery ( _
	mode As VxiCommandMode, _
	command As Integer _
) As Integer

C#
public int CommandQuery(
	VxiCommandMode mode,
	int command
)

Parameters

mode
Type: NationalInstruments.VisaNS.VxiCommandMode
Issue a command and/or retrieve a response. Refer to VxiCommandMode for a list of values.
command
Type: System.Int32
Miscellaneous command to send.

Return Value

Response retrieved from the device. If the mode specifies to send a command rather than retrieve a response, the return value might be ignored.

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.
ObjectDisposedException This member is called after the Dispose method is called directly from code or indirectly through a finalizer.

See Also

Reference

VxiSession Class

NationalInstruments.VisaNS Namespace

WAS THIS ARTICLE HELPFUL?

Not Helpful