Overview:
Demonstrates on generating finite pulses with different duty cycles.
Description:
In this example, the code will generate a sequence of waveforms, one after another with a small delay in between. Each waveform will have a frequency as specified at the Frequency control and a duty cycle specified in Duty Cycle Array. This example highlights the use of DAQmx Channel >> CO.Pulse.DutyCycle property node which allows the user to dynamically update the duty cycle of the generated waveform.
Requirements:
- LabVIEW 2012 or compatible.
- NI-DAQmx 15.5.1 or compatible.
Steps to Implement or Execute Code:
- Specify all control values on the front panel corresponding to the physical channel at which the digital pulses will be generated and the configuration of the pulses.
- Run this VI.
Block Diagram Steps:
- Creates a counter output channel.
- Sets the number of samples to generate.
- Transitions the task to running state to begin generation.
- Waits for the generation to complete.
- Stops the task and returns it to the state it was in before DAQmx Start Task VI.
- Once all pulses with different duty cycle have been generated, clears the task and display any error occurs.
**This document has been updated to meet the current required format for the NI Code Exchange.**
Mikhail
RF Toolkits, Product Support Engineer
National Instruments