Synchronizing Multiple Modules (FPGA Interface)
- Updated2025-10-09
- 5 minute(s) read
You can synchronize multiple modules that are connected to the same FPGA device when your application meets the following requirements:
- The modules use the same master timebase source
- The modules start acquisition mode at the same time
- A single FPGA I/O Node function reads the synchronous data
Create FPGA I/O items for the module before you can configure the items using the FPGA I/O Node. Develop the FPGA VI to meet the guidelines described in the following table.
For delta-sigma modules, you must synchronize multiple sample rates.
| Guideline | Details |
|---|---|
| Share a master timebase source | Configure the modules to share master timebase source. |
| Start the synchronized acquisition |
|
| Acquire data from synchronized modules with the same data rate |
|
| Acquire data from synchronized modules with different data rates |
|
| Module | Decimation Rate, m | Clock Divider, n | Time to First Sample (s) |
|---|---|---|---|
| NI 9231, NI 9250, NI 9251 | 32 | n = 1 | (281.625 * m * n + 5.5) * Master_Timebase_Period ± 1 Master_Timebase_Period |
| 64 | n = 1 | (281.625 * m * n + 8.5) * Master_Timebase_Period ± 1 Master_Timebase_Period | |
| 128, ..., 1,024 | n = 1 | (281.625 * m * n + 6.5) * Master_Timebase_Period ± 1 Master_Timebase_Period | |
| 32, ..., 1,024 | n = 2, ..., 12 | (281.625 * m * n + 5.5) * Master_Timebase_Period ± 1 Master_Timebase_Period | |
| NI 9218, NI 9225, NI 9227, NI 9229, NI 9234, NI 9237, NI 9238, NI 9239, NI 9242, NI 9244, NI 9246, NI 9247 | 256 | n = 1 | (8.5 + n * 34,152) * Master_Timebase_Period |
| n = 2, ..., 31 | (5.5 + n * 34,152) * Master_Timebase_Period | ||
| NI 9230, NI 9232 | 64 | n = 1, ..., 31 | 77/Fs + 4-5 Master_Timebase_Period |
| 128 | n = 1, ..., 31 | 72/Fs + 4-5 Master_Timebase_Period | |
| 256 | n = 1, ..., 31 | 68/Fs + 4-5 Master_Timebase_Period | |
| NI 9235, NI 9236 | 512 | n = 1, ..., 31 | 39/Fs + 110.5 MClk + 1 OClk + Analog Delay |
The Master_Timebase_Period = period of the internal or external clock that the module uses (1/13.1072 MHz, 1/12.8 MHz, or 1/10 MHz). Fs = sample rate. The divider and decimation rate depend on which sample rate you select.
The module Specifications document provides an equation to help you
determine the clock divider and decimation rate and/or lists the clock divider and
decimation rate for each sample rate.
- For example, the NI-9232 Specifications lists the decimation rate as 64 and clock divider as 1 when sampling at 102.4 kHz.
- Using the equation in the NI-9218 Specifications, you can determine that the clock divider is 1 when the sample rate is 51.2 kHz. n = Master_Timebase_Frequency/256/fs [1]1 This is the equation provided in the NI-9218 Specifications reorganized to solve for n.
| Module | Clock Divider, b | Time to First Sample (s) |
|---|---|---|
| NI 9202 | 1 | ((5.40625 + e) * a * b * c * d + 4.5) * Master_Timebase_Period ± 1 Master_Timebase_Period |
| 2, ..., 11 | ((5.40625 + e) * a * b * c * d + 5.5) * Master_Timebase_Period ± 1 Master_Timebase_Period |
The Master_Timebase_Period = period of the internal or external clock that
the module uses (1/13.1072 MHz, 1/12.8 MHz, or 1/10 MHz). a = ADC
Decimation Rate b = Timebase Clock Divider c = ADC
Clock Divider d = Filter Decimation Rate e =
Filter Frequency.
- 0 for notch at Fs
- 1 for notch at Fs/2
- 3 for notch at Fs/4
- 7 for notch at Fs/8
- 15 for notch at Fs/16
| Module | Filter | Clock Divider, b | Time to First Sample (s) |
|---|---|---|---|
| NI 9252, NI 9253 | Comb | 2 | ((5.40625 + b) * 128 * a + 8.5) * Master_Timebase_Period ± 1 Master_Timebase_Period |
| Others | ((5.40625 + b) * 128 * a + 5.5) * Master_Timebase_Period ± 1 Master_Timebase_Period | ||
| Butterworth | 2 | (5.40625 * 128 * a + 8.5) * Master_Timebase_Period ± 1 Master_Timebase_Period | |
| Others | (5.40625 * 128 * a + 5.5) * Master_Timebase_Period ± 1 Master_Timebase_Period |
The Master_Timebase_Period = period of the internal or external clock that
the module uses (1/13.1072 MHz, 1/12.8 MHz, or 1/10 MHz). a =
Decimation Rate b = Filter Frequency.
- 0 for Filter Frequency—1 (notch at Fs)
- 1 for Filter Frequency—2 (notch at Fs/2)
- 3 for Filter Frequency—3 (notch at Fs/4)
- 7 for Filter Frequency—4 (notch at Fs/8)
- 15 for Filter Frequency—5 and 6 (notch at Fs/16)
1 This is the equation provided in the NI-9218 Specifications reorganized to solve for n.