04-13-2015 01:28 PM
hello, im working on a project, and i need to generate two complementary pwm signals(when one goes to 1, the other goes to 0) by using myrio.
the problem with the pwm blocks of myrio is that when you fixe the duty cycle, the signal always starts by its high value. Can anyone help me please ?
Solved! Go to Solution.
04-14-2015 07:30 AM
Hello,
What do you use to control your MyRio?
If it is LabVIEW, have you tried to generate a first signal PWM and use a logical NOT to create the second one?
Keep me intouch.
Best regards,
04-15-2015 05:52 PM
hello jovan, thanks for answering , i am using labview to control myRio, i thought about using a logical not to invert the other pwm but still dont know where to place this "logical not" to create the second pwm because the myrio pwm block which is available on labview is directly connected to the pwm pins.
here is a picture of the labview pwm block. where can i place the "logical not" to invert the first pwm signal ? ( im using an oscilloscope to view my signals)
Thanks
04-16-2015 08:41 AM
Hello,
You can create a square Boolean signal with chosen duty cycle and frequency, create its opposite with logical NOT and then send both signals via Digital Out vi (myRIO/Default/ Digital Out) to two different outputs.
Best regards,
04-16-2015 12:07 PM
thanks a lot Jovan.
best regards
03-29-2016 05:17 AM
i am doing my project in which i have to generate 2 pwm signal using myrio of 5khz can anyone can help
07-07-2021 09:58 PM
Hello Jovan,
I have been trying to generate the complementary PWM control an asynchronous Buck converter, I used the Square Waveform from Waveform generation palette but I can not send this signal to the MyRio Digital input because it is DBL and i need a boolean.
How can I convert this signal? Or what will be a better option to generate a boolean PWM?
Thanks in advance.
07-08-2021 12:56 AM
Your question has very little to do with this ancient thread, but please be aware that help here will be much more specific if you would attach your VI instead of truncated images.
Why is there a local variable? Where is the terminal?
Why is there a build array on the waveform?
Where is the rest of the code?
What is the overall architecture?
etc.
Here's how you can make the VI not broken, but I am 100% sure there are much better ways to do whatever you want to do. Start with some basic tutorials. 😄
Since you just want a TF output, I am not even sure why you think you need to create a DBL waveform first?
Can you explain the entire functionality you are trying to implement?