DAQ_Dynamic Digital Pattern Generation Library
- Updated2025-04-25
- 2 minute(s) read
DAQ_Dynamic Digital Pattern Generation Library
DAQ_Dynamic Digital Pattern Generation Library VIs initialize, configure, generate, and close user-configurable digital output pins. This library is applicable for digital output modules and channels that support hardware-timed digital waveform characteristics.
Note This library supports both Port and Digital
lines from a single module to generate dynamic digital patterns. Multi-module support is
not applicable for this library and will produce errors.
- Use the DAQ_Dyn Dig Gen Initialize VI to initialize hardware and create a DAQmx Task for dynamic digital pattern generation.
- Pass the dynamic digital pattern generation DAQmx Task to the DAQ_Dyn Dig Gen Configure and Measure VI.
- Configure the DAQ_Dyn Dig Gen Configure and Measure VI.
-
- Configuration Settings—Configure the timing related parameters for dynamic digital pattern generation. The
Timing setting configures sample clock source input,
sampling rate, number of samples, and the sample timing
engine used for the dynamic digital pattern generation
task.
- Acquisition Time = Number of Samples/Sample Rate
- Specify Auto to automatically select the timing engine.
Note For NI 63xx (X Series) and other DAQ devices, use Auto mode only. The sample timing engine is only used for cDAQ and TestScale platforms, which support multiple timing engines.Note Refer to the relevant specifications document to identify the maximum sampling rate for your device. Values that exceed the maximum sampling rate generate errors.Configure triggers to start the source or measurement based on various trigger events. Trigger options include no trigger or digital start triggers.
Note Triggers are not supported for serial modules including C Series and TestScale TS-15120 and TS-15130 devices. Refer to the Timed digital input/output restrictions section of Digital I/O Considerations for C Series and TestScale Devices for a list of limitations to consider for hardware-timed digital tasks.Configure the Port Digital Data to specify the integer data for the port used.
Note DAQmx does not evaluate the size of the port and internally ignores the other bits. - Output Data—The VI outputs the total generation time in seconds.
-
- Wire the updated dynamic digital pattern generation task from DAQmx Task Out.
- Close the dynamic digital pattern generation task using DAQ_Dyn Dig Gen Close VI.
