From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DC Motor Speed Control labVIEW FPGA

i have created a Vi to control the speed of two Dc Motor but i am not able to control the speed from labview i.e the amount of current which is applied to the h-Bridge ..the only option i have is to use potentiometer..was asking if anyone can help me how to control the speed of the motors..any help will be highly appreciated.

much regards

0 Kudos
Message 1 of 2
(2,223 Views)

Hi meschack103!

At the beginning try to develop your code only for one motor direction.Try to name your UI / block diagram elements in more appropriate way because now it's really confusing. I assume you're trying to achieve a PWM signal generation. 

- Add new frame to Flat sequence (at the beginning) and put there Loop Timer.

- Remember that you can always extend I/O Node and control more than one output synchronously. 

- Part of your code outside the while loop will not be executed.

 

Except this rest looks good and you should get PWM as an output.

Regards

0 Kudos
Message 2 of 2
(2,177 Views)