LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Comparision of Triangular and Square wave and converting to digital signal using DAQ Assist

Hello,

 

I would like to create a PWM signal by comparing a Triangular wave of 4kHz with a Sine wave of 400Hz and the analog output is to be converter to a digital train of pulses which i would like to feed to a M series SCB-68 device for mosfet gating pulse.I have attached a figure depicting the problem.

0 Kudos
Message 1 of 4
(2,563 Views)

Hi Adithya,

 

and what is your problem? All you wrote is "I would like to…"!

 

Start with coding, then ask for specific problems.

 

Hint:

This seems to be an exercise topic given to several students as I have seen similar questions in the last days. Maybe you do some forum search and look what other people have tried so far?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,531 Views)

Hi,

 

Sorry for not including the VI. Also i am facing issues with DAQ assist. How shall i connect the subtracted wave which is analog to digital and get it on the M series device. Also I have done some readthrough on the diffferent ways of generating PWM. But I would like to try in this way. Is is possible using DAQ assist

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

Hi Adithya,

 

instead of subtracting the waveforms you might use a simple "greater than" comparison which already results in a boolean signal.

To "get that on the M series device" you should use DAQmx functions…

 

Btw. the SC68 is just a connector box. What kind of device you really are working with?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,518 Views)