NI-DAQmx .NET Framework 4.5 API Reference

Table of Contents

ReferenceTrigger Class

  • Updated2023-02-21
  • 7 minute(s) read
ReferenceTrigger Class
Contains properties and methods that configure the trigger that creates the reference point between the pretrigger samples and the post-trigger samples.

Inheritance Hierarchy

SystemObject
  SystemMarshalByRefObject
    NationalInstruments.DAQmxReferenceTrigger

Namespace:  NationalInstruments.DAQmx
Assembly:  NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.45.49302

Syntax

public class ReferenceTrigger : MarshalByRefObject, 
	IFilteredTypeDescriptor
Public Class ReferenceTrigger
	Inherits MarshalByRefObject
	Implements IFilteredTypeDescriptor

The ReferenceTrigger type exposes the following members.

Properties

  NameDescription
Public propertyAnalogEdge
Public propertyAnalogMultiEdge
Public propertyAnalogWindow
Public propertyAutoTriggered
Indicates whether a completed acquisition was triggered by the auto trigger. If an acquisition has not completed after the task starts, this property returns . This property is only applicable when AutoTriggerEnable is .
Public propertyAutoTriggerEnable
Specifies whether to send a software trigger to the device when a hardware trigger is no longer active in order to prevent a timeout.
Public propertyDelay
Specifies in seconds the time to wait after the device receives the Reference Trigger before switching from pretrigger to posttrigger samples.
Public propertyDigitalEdge
Public propertyDigitalPattern
Public propertyMaximumNumberOfTriggersToDetect
Specifies the maximum number of times the task will detect a reference trigger during the task. The number of times a trigger is detected and acted upon by the module may be less than the specified amount if the task stops early because of trigger/retrigger window expiration. Specifying the Maximum Number of Triggers to Detect to be 0 causes the driver to automatically set this value to the maximum possible number of triggers detectable by the device and configuration combination. Note: The number of detected triggers may be less than number of trigger events occurring, because the devices were unable to respond to the trigger.
Public propertyPretriggerSamples
Specifies the minimum number of pretrigger samples to acquire from each channel before recognizing the reference trigger. Post-trigger samples per channel are equal to SamplesPerChannel minus the number of pretrigger samples per channel.
Public propertyRetriggerable
Specifies whether a finite task resets, acquires pretrigger samples, and waits for another Reference Trigger after the task completes. When you set this property to TRUE, the device will acquire post-trigger samples, reset, and acquire pretrigger samples each time the Reference Trigger occurs until the task stops. The device ignores a trigger if it is in the process of acquiring signals.
Public propertyRetriggerWindow
Specifies the duration in seconds after each trigger during which the device may trigger. Once the window has passed, the device stops detecting triggers, and the task will stop after the device finishes acquiring post-trigger samples that it already started. Specifying a Retrigger Window of -1 causes the window to be infinite.
Public propertyTerminal
Indicates the name of the internal Reference Trigger terminal for the task. This property does not return the name of the trigger source terminal.
Public propertyTimestamp
Gets the reference trigger timestamp.
Public propertyTimestampEnable
Specifies whether the reference trigger timestamp is enabled. If the timestamp is enabled but no resources are available, an error will be returned at run time.
Public propertyTimestampTimescale
Specifies the reference trigger timestamp timescale.
Public propertyTriggerWindow
Specifies the duration in seconds after the task starts during which the device may trigger. Once the window has passed, the device stops detecting triggers, and the task will stop after the device finishes acquiring post-trigger samples that it already started. If no triggers are detected during the entire period, then no data will be returned. Specifying a Trigger Window of -1 causes the window to be infinite.
Public propertyType
Specifies the type of trigger to use to mark a reference point for the measurement.
Top

Methods

  NameDescription
Public methodConfigureAnalogEdgeTrigger
Configures the task to stop the acquisition when the device acquires all pretrigger samples; an analog signal reaches the level you specify; and the device acquires all post-trigger samples.
Public methodConfigureAnalogMultiEdgeTrigger
Configures the task to stop the acquisition when the device acquires all pretrigger samples, any of the configured analog signals reaches the levels you specify, and the device acquires all post-trigger samples.
Public methodConfigureAnalogWindowTrigger
Configures the task to stop the acquisition when the device acquires all pretrigger samples; an analog signal enters or leaves a range you specify; and the device acquires all post-trigger samples.
Public methodConfigureDigitalEdgeTrigger
Configures the task to stop the acquisition when the device acquires all pretrigger samples, detects a rising or falling edge of a digital signal, and acquires all post-trigger samples.
Public methodConfigureDigitalPatternTrigger
Configures a task to stop the acquisition when the device acquires all pretrigger samples, matches a digital pattern, and acquires all posttrigger samples.
Public methodConfigureNone
Disables reference triggering for the measurement.
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public methodToString
Returns a string representation of the object.
(Overrides ObjectToString.)
Top

Remarks

Tip Tip
Example applications are located in the Public Documents\National Instruments\NI-DAQ\Examples\DotNET4.x directory or in the Start menu at National InstrumentsNI-DAQmxNI-DAQmx Examples.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Log in to get a better experience