LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MyRIO controll motor using MD22 driver

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

0 Kudos
Message 1 of 4
(3,005 Views)

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.

0 Kudos
Message 2 of 4
(2,970 Views)

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

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

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/

 

 

0 Kudos
Message 4 of 4
(2,932 Views)