11-12-2018 08:08 PM
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
11-16-2018 04:29 AM
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