Digital I/O Test Sequence
- Aktualisiert2025-04-25
- 5 Minute(n) Lesezeit
The Digital I/O Tests sequence simulates digital I/O channels or modules to demonstrate generation and measurement of digital state, digital pattern, clock, digital pulse, and PWM signals.
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\Digital IO Tests
Highlighted Features
- DAQ_Static Digital State Generation
- DAQ_Static Digital State Measurement
- DAQ_Dynamic Digital Pattern Generation
- DAQ_Dynamic Digital Pattern Measurement
- DAQ_Digital Clock Generation
- DAQ_Digital Frequency Measurement
- DAQ_Digital Pulse Generation
- DAQ_Digital PWM Measurement
- DAQ_Digital Pulse Generation
- DAQ_Digital Edge Count Measurement
- DAQ_Digital Pattern Generation
- DAQ_Digital Edge Count Measurement
Hardware Configuration

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 Digital State Test sequence.
- Open NI-MAX and update the physical channel linked to the global virtual channels used in the Static Digital State Generation and Measurement initialize steps: TS_Din0, TS_Din1, TP_DOut0, TP_DOut1. Refer to Creating and Modifying Global Virtual Channels for more information.
- Review the digital input and digital output pin configurations for your application use case.
- Save the sequence.
- Configure the Digital Pattern Test (With Trigger)
sequence.
- Open NI-MAX and update the physical channel linked to the global virtual channels used in the Static Digital State Generation and Measurement initialize steps: TS_Din0, TS_Din1, TP_DOut0, TP_DOut1. Refer to Creating and Modifying Global Virtual Channels for more information.
- Update the trigger as appropriate for your hardware configuration in Dynamic Digital Pattern Measurement - Configure TP step.
- Update parameters in the Generate Port Digital Data step based on the desired digital pattern. This step can also be replaced entirely with any other step to generate any custom digital pattern.
- Verify that the sampling rate at measurement end should be the same as the sampling rate at generation end. Use the onboard clock devices on the same backplane or use external PFI signals.
- Review the pin configurations for your application use case.
- Save the sequence.
- Configure the Digital Clock Test sequence.
- Update the terminal and counter channels used in the initialize step.
- Physical Counter: Simulated_DAQ/ctr1, Simulated_DAQ/ctr3
- Terminals: /Simulated_DAQ/PFI3, /Simulated_DAQ/PFI7
- Update the digital clock settings in the Digital Clock Generation - Configure and generate Digital clock step based on the generated digital clock signal.
- Review the pin configurations for your application use case.
- Save the sequence.
- Update the terminal and counter channels used in the initialize step.
- Configure the Digital PWM Test sequence.
- Update the terminal and counter channels used in the initialize step.
- Physical Counter: Simulated_DAQ/ctr1, Simulated_DAQ/ctr3
- Terminals: /Simulated_DAQ/PFI3, /Simulated_DAQ/PFI7
- Update the cycles to capture in the Digital PWM Measurement - Configure only step.
- Update the digital pulse settings in the Digital Pulse Generation - Generate Digital pulse signals step based on the generated digital pulse signal.
- Review the pin configurations for your application use case.
- Save the sequence.
- Update the terminal and counter channels used in the initialize step.
- Configure the Digital Count Event Tests - SW Timed (External
Wait) sequence.
- Update the terminal and counter channels used in the initialize step.
- Physical Counter: Simulated_DAQ/ctr1, Simulated_DAQ/ctr3
- Terminals: /Simulated_DAQ/PFI3, /Simulated_DAQ/PFI7
- Update the digital pulse settings in the Digital Pulse Generation - Configure & Generate Digital pulse signals step.
- Update the external software wait time in the External Software Wait step based on the measurement window required to capture the entire digital pulse signal.
- Review the pin configurations for your application use case.
- Save the sequence.
- Update the terminal and counter channels used in the initialize step.
- Configure the Digital Count Event Tests - HW Timed (With
Trigger) sequence.
- Update the terminal and counter channels used in the initialize step.
- Physical Counter: Simulated_DAQ/ctr0, Simulated_DAQ/ctr1
- Terminals: /Simulated_DAQ/PFI0
- Global Channel: TS_Din0
- Update the trigger as appropriate for your hardware configuration in Digital Edge Count Measurement - Configure TP step.
- Update parameters in the Generate Port Digital Data step based on the desired digital pattern. This step can also be replaced entirely with any other step to generate any custom digital pattern.
- Review the pin configurations for your application use case.
- Save the sequence.
- Update the terminal and counter channels used in the initialize step.
- Configure the Turn Off all DO Channels sequence.
- Open the Initialize step and update the Global Channels input to use yourdigital output channel.
- 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.