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

IMessageBasedSession Interface See Also


Asserts a software or hardware trigger.

Namespace: NationalInstruments.VisaNS

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

Syntax

Visual Basic (Declaration)
Sub AssertTrigger

C#
void AssertTrigger()

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 Unable to start operation because setup is invalid (due to properties being set to an inconsistent state).
ObjectDisposedException This member is called after the Dispose method is called directly from code or indirectly through a finalizer.

Remarks

The AssertTrigger method sources a software or hardware trigger based on the interface type. For a GPIB device, the device is addressed to listen, and then the GPIB GET command is sent. For a VXI device, if TriggerLine is set to Software, the device is sent the Word Serial Trigger command. For any other values of TriggerLine, a hardware trigger is sent on the line that corresponds to the value of the property. For a session to a Serial device or Ethernet socket, if IOProtocol is set to Protocol4882, the device is sent the string "*TRG\n". For a Serial device or Ethernet socket, this method is invalid for any other setting of IOProtocol. For a session to a USB instrument, this method sends the TRIGGER message ID on the Bulk-OUT pipe.

See Also

Reference

IMessageBasedSession Interface

NationalInstruments.VisaNS Namespace

WAS THIS ARTICLE HELPFUL?

Not Helpful