LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Arbitrary Waveform

Solved!
Go to solution

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

0 Kudos
Message 1 of 4
(3,638 Views)

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

0 Kudos
Message 2 of 4
(3,561 Views)

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

0 Kudos
Message 3 of 4
(3,555 Views)
Solution
Accepted by topic author Martin88

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. 

0 Kudos
Message 4 of 4
(3,532 Views)