Overview
This is a sample project that shows how to customize and use myRIO’s FPGA to drive 8 or 16 PWM channel using onboard Digital I/O. Anyone can customize this example in order to have more PWM lines on a single myRIO device or to change how those lines are distributed on the myRIO connectors A,B and C.
Description
The project is made by a set of VIs and subVIs:
Steps to Implement or Execute Code
See documentation inside for more details.
For feedbacks or requests write to luca.gallo@ni.com
Requirements
Software
LV 2013
myRIO Module
Hardware
myRIO device (FPGA VIs are already compiled for myRIO-1900 but can be compiled again for myRIO-1950)
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Good stuff. But the PWM signals are synchronized, with different phase. How to generate synchronized PWM signals with MyRIO? How many maximum number of PWMs (2k-20kHz) can be generated with MyRIO?
same question, phase difference between two channels are always changing after every activation. I've put two activation subVIs into the same while loop with different channel controls. I assume that there should be some kind of synchronization register onboard. Have you found any solutions yet?
excellent
Can you please give a .zip or a regular file?? I'm not allowed to download a .rar extractor??
thanks
You can find the zip file now. You're welcome. Bye
Hey I've managed to implement your system with 24 pwm outputs, by using ports A0-A7 and ports B0-15. However currently I was was hoping to make use of the I2C connection pins on both ports A & B for external sensors. Therefore I was wondering if it would be possible to use only 12 pins on B, leaving 2 DIO pins and the two I2C pins free, and compensate for the lost PWM pins by making use of 4 DIO more pins on the A or C port.
Thus overall it would be, outputting PWM:
A0-11
B0-11
OR
A0-7
B0-11
C11-15
Thanks in advance!
Could somebody explain how to used the remaining Digital Out and Analogue in ports while using this please?
excellent ! thanks
There is always an error when I run the "8 Chs PWM - RT Main.vi". A screenshot of the error image is as follows. I wonder if I need to do some changes to the main VI.
I am doing project on speed control of 1HP dc motor using myrio. For this purpose I am using boost converter.l have to give pulse to converter using myrio. As I am new to labview can anyone help me how to generate pulse in real time