Synchronization Example Sequence
- Aktualisiert2025-04-25
- 5 Minute(n) Lesezeit
The Synchronization example sequence demonstrates synchronization of multiple DAQ devices or multiple chassis using generation and measurement libraries that target analog digital I/O channels and modules.
This TestStand sequence uses the LabVIEW measurement libraries. By default, the test sequence is installed to the following location: C:\Users\Public\Documents\National Instruments\PCB Assembly Test Toolkit for LabVIEW\TestStand\Automation\Synchronization Example
Required Driver Application Software
This sequence requires a supported version of NI-DAQmx.Highlighted Features
- DAQ_Synchronization
- DAQ_Signal Voltage Generation
- DAQ_Time Domain Measurement
- DAQ_Synchronization
- DAQ_Dynamic Digital Pattern Generation
- DAQ_Dynamic Digital Pattern Measurement
- DAQ_Digital Clock Generation
- DAQ_Digital PWM Measurement
Hardware Configuration
The following figures illustrates the specific hardware connections for this example sequence using TestScale backplanes and core modules. For NI 63xx (X Series) DAQ instruments, PFI signals are routed directly using the PFI resources available on the instrument connector. Refer to your hardware specifications to understand the available PFI routing signals for clocks and triggers.
In the first figure, PFI0 routes the sample clock and PFI1 routes the start trigger.



Refer to the documentation for your specific device for pinouts and other information necessary to adapt this example sequence to your application.
Using the Sequence with Physical Hardware
- Run the sequence once in simulation mode. Running the sequence
in simulation mode creates the required global virtual channels in NI MAX that
you must modify. Note In this example, physical and global virtual channels are used to configure the terminal or pin to perform the instrument actions. Global virtual channels are software entities that encapsulate the physical channel along with other channel specific information such as range, terminal configuration, and custom scaling. You can create global channels in NI MAX and call them from measurement libraries.
- Right click the Import Hardware Config step and select to skip the step.
- Configure the remaining sequences. Open each sequence and examine the Note to run with Hardware entry.
- Configure the SignalVoltageGeneration and
TimeDomainMeasurement sequence.
- Open NI-MAX and update the physical channel linked to the global virtual channels used in the Signal Voltage Generation and Time Domain Measurement initialize steps: TS_Analog0 and TP_Analog0. Refer to Creating and Modifying Global Virtual Channels for more information.
- Update the routing path in the Route Synchronization Signals step for the chassis where the signal originates to export the sample clock and start trigger of the Signal Voltage Generation task to the target PFI lines.
- Open the Time Domain Measurement – Configure TP step and update the Sample Clock Source and Digital Trigger Source to use external PFI lines.
- Set the Periodic Waveform input to True to enable all time domain measurements in the Time Domain Measurement - Read Captured Waveform step.
- Review the analog output and analog input pin configurations for your use case.
- Save the sequence.
- Configure the DynamicDigitalPatternGeneration and
DynamicDigitalPatternMeasurement sequence.
- Open NI-MAX and update the physical channel linked to the global virtual channels used in the Dynamic Digital Pattern Generation and Dynamic Digital Pattern Measurement initialize steps: TS_Digital0:1 and TP_Digital0:1. Refer to Creating and Modifying Global Virtual Channels for more information.
- Update the routing path in the Route Synchronization Signals step for the DAQ instrument or chassis where the signal originates to export the sample clock and start trigger of the Dynamic Digital Pattern Generation task to the target PFI lines.
- Update the Sample Clock Source and Digital Trigger Source to use external PFI lines in the Dynamic Digital Measurement – Configure TP step.
- Update the Number of Digital Lines configured for signal generation in the Generate Port Digital Data step.
- Review the digital output and digital input pin configurations for your use case.
- Save the sequence.
- Configure the DigitalClockGeneration and
DigitalPWMMeasurement sequence.
- Update the Output Terminaland Physical Channel (Counter) used in the Digital Clock Generation and Digital PWM Measurement initialize steps.
- Review the digital output and digital input pin configurations for your use case.
- Save the sequence.
- Configure the Turn Off all AO Channels sequence.
- Open the DC Voltage Generation - Initialize AO Channels step and update the Global Channels input to use your analog output channel.
- Update Number of Analog Lines to be configured to 0 V in the Assign AO Voltages step.
- Review the analog output pin configurations for your use case.
- Save the sequence.
- Configure the Turn Off all DO Channels sequence.
- Open the DC Voltage Generation - Initialize DO Channels step and update the Global Channels input to use your digital output channel.
- Update Number of Digital Lines to be configured to a digital LOW state in the Assign Digital States step.
- Review the digital output pin configurations for your use case.
- Save the sequence.
Physical Hardware Considerations
Ensure a common ground connection is provided between digital input and digital output resources.
In digital pattern measurement, make sure to use the same sample clock rate in both digital input and digital output for precise data extraction from the testpoint.
Digital states are provided as True or False Boolean values to the VIs. The corresponding voltage level, for example, a digital HIGH state, depends on individual resources.
(TestScale only) TS-15050 DIO channels use 3.3 V TTL, single-ended I/O. The TS-15120 DIO voltage level is controlled by manual jumper connections. TS-15130 DO channels are current sinking outputs. Refer to the individual product documentation for additional details.
Verwandte Inhalte
- Creating and Modifying Global Virtual Channels
A virtual channel is a collection of settings such as a name, a physical channel, input terminal connections, the type of measurement or generation, and scaling information. A virtual channel that is created outside a task is a global virtual channel.
- Channels: Physical, Virtual, Local Virtual, and Global Virtual
- Achieving Synchronization
Use these best practices to synchronize multiple chassis.
- NI-DAQmx Synchronization of PXI Express Modules
- Choosing a CompactDAQ Synchronization Technology