06-13-2015 09:49 AM
how to make PWM generator using sine wave and triangular wave too while using basics functions given in function palette only. My instructor has asked me to do so, i think its possible only by using select switch or case stucture.
06-13-2015 04:27 PM
What have you tried?
Blog for (mostly LabVIEW) programmers: Tips And Tricks
06-14-2015 03:23 AM
what I have done here is that I have taken sinewave generator and plotted it on the graph as well as chart. Then I have converted all the negative value of sine wave to positive by taking absolute value which traces the wave same as that of full wave rectifier. Now I need to set a threshold level of amplitude say 0.5 (which in terms of PWM is duty cycle) and again want to trace the graph. the graph hence obtained would be more like PWM generator. When the value is greater than 0.5 the graph will be traced and as soon as the value is less than 0.5 the value should fall to 0 immediately. For this I'm using select switch but am not able to make connection. Please find a way for me.
06-14-2015 08:47 AM
What you have described is not what is typically called pulse width modulation. The usual output of a PWM system is a series of pulses of constant amplitude and frequency but varying width or duty cycle.
Consider the output of a comparison function, such as Greater Than? That output is a boolean data type but can be changed to numeric by using the Boolean to (0,1) function.
Lynn