Digital Input Timing Signals
- Updated2023-10-23
- 5 minute(s) read
Digital Input Timing Signals
- DI Sample Clock Signal*
- DI Sample Clock Timebase Signal
- DI Start Trigger Signal*
- DI Reference Trigger Signal*
- DI Pause Trigger Signal*
Signals with an * support digital filtering. Refer to the PFI Filters section for more information.
DI Sample Clock Signal
Use the DI Sample Clock signal to sample digital I/O on any slot using parallel digital modules, and store the result in the DI waveform acquisition FIFO. If the sbRIO controller receives a DI Sample Clock signal when the FIFO is full, it reports an overflow error to the host software.
A sample consists of one reading from each channel in the DI task. DI Sample Clock signals the start of a sample of all digital input channels in the task. DI Sample Clock can be generated from external or internal sources as shown in the following figure.
Routing DI Sample Clock to an Output Terminal
You can route DI Sample Clock to any output PFI terminal.
DI Sample Clock Timebase Signal
The DI Sample Clock Timebase signal is divided down to provide a source for DI Sample Clock. DI Sample Clock Timebase can be generated from external or internal sources. DI Sample Clock Timebase is not available as an output from the controller.
Using an Internal Source
it Sample Clock
ot Sample Clock
Counter n Internal Output
Frequency Output
DI Change Detection Output
Several other internal signals can be routed to DI Sample Clock. Refer to the "Device Routing in MAX" topic in the NI-DAQmx Help or the LabVIEW Help for more information.
Using an External Source
Any PFI terminal
Analog Comparison Event (an analog trigger)
You can sample data on the rising or falling edge of DI Sample Clock.
Routing DI Sample Clock to an Output Terminal
You can route DI Sample Clock to any output PFI terminal. The PFI circuitry inverts the polarity of DI Sample Clock before driving the PFI terminal.
DI Start Trigger Signal
When a certain number of points has been sampled (in finite mode)
After a hardware reference trigger (in finite mode)
With a software command (in continuous mode)
An acquisition that uses a start trigger (but not a reference trigger) is sometimes referred to as a posttriggered acquisition. That is, samples are measured only after the trigger.
When you are using an internal sample clock, you can specify a delay from the start trigger to the first sample.
Using a Time Source
To use the Start Trigger signal with a time source, configure a specific time in NI-DAQmx. Refer to the "Timestamps" and "Time Triggering" topics in the NI-DAQmx Help for more information on accessing time-based features in the NI-DAQmx API.
Using a Digital Source
Any PFI terminal
Counter n Internal Output
The source also can be one of several other internal signals on the sbRIO controller. Refer to the "Device Routing in MAX" topic in the NI-DAQmx Help or the LabVIEW Help for more information.
Routing DI Start Trigger to an Output Terminal
You can route DI Start Trigger to any output PFI terminal. The output is an active high pulse.
DI Reference Trigger
Signal
Use a reference trigger signal to stop a measurement acquisition. To use a reference trigger, specify a buffer of finite size and a number of pretrigger samples (samples that occur before the reference trigger). The number of posttrigger samples (samples that occur after the reference trigger) desired is the buffer size minus the number of pretrigger samples.
Once the acquisition begins, the sbRIO controller writes samples to the buffer. After the sbRIO controller captures the specified number of pretrigger samples, the controller begins to look for the reference trigger condition. If the reference trigger condition occurs before the sbRIO controller captures the specified number of pretrigger samples, the controller ignores the condition.
If the buffer becomes full, the sbRIO controller continuously discards the oldest samples in the buffer to make space for the next sample. This data can be accessed (with some limitations) before the sbRIO controller discards it. Refer to the Can a Pretriggered Acquisition be Continuous? document for more information.
When the reference trigger occurs, the sbRIO controller continues to write samples to the buffer until the buffer contains the number of posttrigger samples desired. The figure below shows the final buffer.
Using a Digital Source
To use DI Reference Trigger with a digital source, specify a source and a rising or falling edge. Either PFI or one of several internal signals on the sbRIO controller can provide the source. Refer to the "Device Routing in MAX" topic in the NI-DAQmx Help or the LabVIEW Help for more information.
Routing DI Reference Trigger Signal to an Output Terminal
You can route DI Reference Trigger to any output PFI terminal. Reference Trigger is active high by default.
DI Pause Trigger Signal
You can use the DI Pause Trigger signal to pause and resume a measurement acquisition. The internal sample clock pauses while the external trigger signal is active and resumes when the signal is inactive. You can program the active level of the pause trigger to be high or low.
Using a Digital Source
To use DI Pause Trigger, specify a source and a polarity. The source can be either from PFI or one of several other internal signals on your sbRIO controller. Refer to the "Device Routing in MAX" topic in the NI-DAQmx Help or the LabVIEW Help for more information.
In This Section
- DI Sample Clock Signal
- Routing DI Sample Clock to an Output Terminal
- DI Sample Clock Timebase Signal
- Using an Internal Source
- Using an External Source
- Routing DI Sample Clock to an Output Terminal
- DI Start Trigger Signal
- Using a Time Source
- Using a Digital Source
- Routing DI Start Trigger to an Output Terminal
- DI Reference Trigger
Signal
- Using a Digital Source
- Routing DI Reference Trigger Signal to an Output Terminal
- DI Pause Trigger Signal
- Using a Digital Source