LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pwm generation

Hi

 

I am new in labview. I would like to control the speed of a DC motor. I would like to create a pwm modulation but I don't know how to do it using NI 7833R FPGA board. Please could you help me?

 

TT

0 Kudos
Message 1 of 7
(2,848 Views)
0 Kudos
Message 2 of 7
(2,845 Views)

Hi

 

Thank you very much for your answer. I have made a simple program for pwm generation but it is not working well. Could you please check the application is it ok.

 

Best regards

 

TT

0 Kudos
Message 3 of 7
(2,812 Views)

Hi TiHo,

 


@tiho wrote:
I have made a simple program ... but it is not working well.

So your program is working... What part isn't "well"?

Best regards,
GerdW


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

Hi

Using this VI application sent before I would like to generate pwm signal for control of AC motor according to a specific driver L293D connected to the FPGA board but something is wrong. The scheme is attached to the e-mail.

 

Best regards

 

TT

0 Kudos
Message 5 of 7
(2,804 Views)

Hi tiho,

 

what exactly is wrong? Can you name the problem - you only say "something"...

 

Did you know you can attach pictures as PNG or JPG instead of using some weird proprietary file format?

Best regards,
GerdW


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

What I see is that your Wait functions are defined in "ticks" (25nsec) and your controls say "msec". So if you are indeed programming the controls with milliseconds, your output signal will be a whole lot faster than you probably expected. Also, you label the first Wait as "Duty Cycle" and the second as "Period". More accurately would be to label the first one "Low Pulse width" and the other "High Pulse Width" since "Period" includes pulse duration. And you seem to have an orphaned boolean indicator.

0 Kudos
Message 7 of 7
(2,772 Views)