Overview
The project would shows how to program a dynamic digital output of waveform signal
Description:
This example demonstrates how to output a finite, custom digital waveform using an internal clock.
Steps to implement or execute code
To implement this example:
- Select the Physical Channel to correspond to where your signal is output on the DAQ device.
- Specify the Rate of the output digital pattern
Steps in the Code:
- Create a new task.
- Create the digital output channel.
- Configure the task to use an internal sample clock
- Set the sample mode for finite samples.
- Create a DigitalMultiChannelWriter and associate it with the task by using the task's stream.
- Call the DigitalMultiChannelWriter.WriteWaveform method to write the digital pattern to a buffer.
- Call Task.Start().
- Dispose the Task object to clean-up any resources associated with the task.
- Handle any DaqExceptions, if they occur.
Requirements
Software
Visual Studio 2010
.NET Framework 4.0
NI-DAQmx 16.0 or compatible
Hardware
NI PXIe/PCIe-6535/6536/6537

Additional Notes:
Digital Waveform Graph has Different Line Ordering for NI PXIe/PCIe-6535/6536/6537 Devices
**This document has been updated to meet the current required format for the NI Code Exchange.**
Mikhail
RF Toolkits, Product Support Engineer
National Instruments