Analog Input Timing Engine
- Updated2025-08-09
- 3 minute(s) read
The USB-6421 has a flexible timing engine.
The following figure summarizes all of the timing options provided by the analog input timing engine.
The USB-6421 uses AI Sample Clock (ai/SampleClock) and AI Convert Clock (ai/ConvertClock) to perform interval sampling. As the following figure shows, AI Sample Clock controls the sample period, which is determined by the following equation:
AI Convert Clock controls the Convert Period, which is determined by the following equation:
Post-triggered data acquisition allows you to view only data that is acquired after a trigger event is received. A typical post-triggered DAQ sequence is shown in the following figure. The sample counter is loaded with the specified number of post-trigger samples, in this example, five. The value decrements with each pulse on AI Sample Clock until all desired samples have been acquired.
Pre-triggered data acquisition allows you to view data that is acquired before the trigger of interest, in addition to data acquired after the trigger. The following figure shows a typical pre-triggered DAQ sequence. AI Start Trigger (ai/StartTrigger) can be either a hardware or software signal. If AI Start Trigger is set up to be a software start trigger, an output pulse appears on the ai/StartTrigger line when the acquisition begins. When the AI Start Trigger pulse occurs, the sample counter is loaded with the number of pre-triggered samples, in this example, four. The value decrements with each pulse on AI Sample Clock. The sample counter is then loaded with the number of post-triggered samples, in this example, three.
If an AI Reference Trigger (ai/ReferenceTrigger) pulse occurs before the specified number of pre-trigger samples are acquired, the trigger pulse is ignored. Otherwise, when the AI Reference Trigger pulse occurs, the sample counter value decrements until the specified number of post-trigger samples have been acquired.