ConfigureAnalogWindowTrigger(string, AnalogWindowStartTriggerCondition, double, double)
- Updated2026-02-03
- 1 minute(s) read
Configures the task to start acquiring or generating samples when an analog signal enters or leaves a range you specify.
Syntax
Namespace: NationalInstruments.DAQmx
public void ConfigureAnalogWindowTrigger(string source, AnalogWindowStartTriggerCondition condition, double top, double bottom)
Remarks
The NI-DAQmx driver does not determine if the requested settings are possible until the task is verified. ConfigureAnalogWindowTrigger(string, AnalogWindowStartTriggerCondition, double, double) does not throw an exception for parameter values that are not compatible with your hardware or other settings in your task. To determine if all of the settings for a Task are valid, you must verify the task by starting the task, either with Start or by reading from or writing to the task, or by calling Control(TaskAction) with Verify.
Parameters
| Name | Type | Description |
|---|---|---|
| source | string | The name of a virtual channel or terminal where there is a digital signal to use as the source of the trigger. For E Series devices, if you use a channel name, the channel must be the first channel in the task. The only terminal you can use for E Series devices is PFI0. |
| condition | AnalogWindowStartTriggerCondition | Specifies if the reference trigger occurs when the signal enters the window or leaves the window. Use bottom and top to specify the limits of the window. |
| top | double | The upper limit of the voltage window, in the units of the measurement or generation. |
| bottom | double | The lower limit of the voltage window, in the units of the measurement or generation. |
Exceptions
| Type | Description |
|---|---|
| NationalInstruments.DAQmx.DaqException | The NI-DAQmx driver returned an error. |