08-04-2016 04:14 AM
I need help to control my motor connected to MD22 motor driver however it start to wheelie on start up i was thinking to use some sort of ramp to increase the speed slowly then stay at constant speed using myRIO on labview 0v at full speed 2.5v for stop. tried using while loop can ramp up but cannot stay at constant speed help pls
08-04-2016 08:25 PM
would you be able to elaborate more on what you mean by "cannot stay at constant speed"? If you could attach a screenshot of your while loop, perhaps we would have a better idea of it.
08-04-2016 11:32 PM
this is my program i am working on. it will wheelie when start up on the case 0 (in the program) which is forward so i wanted to slowly increase speed from 2.5 to 1(MD22 analog ouput setting) then stay at 1 all the way until the switch is activated which will stop
08-07-2016 10:54 PM
It seems to me that you are trying to write a program that continuously checks the DIO pins on the myRIO. If that is the case, you cannot use a sequential design pattern. I would suggest using a state machine design pattern instead.
Here are some resources that you can refer to:
http://www.ni.com/white-paper/3024/en/
http://www.ni.com/video/2963/en/