10-23-2014 03:07 PM
Hi Forum,
would like to use th NI PXI 6363 AO to simulate a Arbitary PWM signal signal. I see that i could use the Waveform Generator vi. in Labview, that would allow me to change the duty cycle, amplitude and frequency but I also would like to change rising time, or falling time may also add noise to the function. What would be the best way to do this in Labview? Has someone experience using arbitarywaveforms?
Thanks and Best,
Martin
Solved! Go to Solution.
10-27-2014 10:54 AM
Hello,
with the Basic Function Generator.vi it is possible to make a PWM signal. If you want to add noise, you can create a noise signal for example with the Uniform White Noise Waveform.vi; and add this signal to the PWM signal. For the rise and fall time there are no specific VIs. Afterwords, you will need to write a program which converts the steep edges into ramp signals. Maybe we can think about, that the pwm signal passes through a bandpassfilter. But it will be very complex to get the right settings for the bandpassfilter.
For the PWM signal you can use the example: SimEx Pulse.vi
Kind regards
10-27-2014 11:27 AM
Hi Dennis,
thanks for your response. I tried the function gernator as well as the noise waveform.vi, i think this works fine giving me a PWM signal, but it also is not allowing me to change the high and low state of the Pulse signal. I would like to controll a Hardware were i will have also controll the High-and Low state Level of the signal, as well as Dutycycle.
I was also looking at the SimEx Pulse.vi but there is an additional Software needed that i dont have: "NI LabVIEW Control Design and Simulation Module" . May another idea?
Thanks
Martin
10-28-2014 05:25 AM
Hello,
you can take the pwm waveform from the function generator and if you want a low state = 0 and high state = for example 3; just multiply the waveform with 3. But if you want a low state = 1 and high state = 3, take the waveform into a for loop and set the high and low state.