To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example shows how you can use the "Square Wave Generator" express VI to generate PWM signals with an analog output module on CompactRIO.
Description
This example shows how to use two instances of "Square Wave Generator" express VI to generate two PWM analog output signals with the following parameters: Frequency, Phase Offset, Amplitude, Offset, Duty Cycle.
All parameters can be canged in host VI Front Panel that can be used in Real-Time debugging mode or on windows targets. Parameters in host VI can be entered in Hz (Frequency), Periods (Phase Offset, Duty Cycle) and Volts (Amplitude, Offset). By using the "Normalize Signal Generation Parameters" VI, all parameters are converted and scaled to datatypes required by the FPGA functions.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
Real-Time VI:
FPGA VI:
**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Good day, unfortunately, after the launch Square Wave FPGA.vi of an error