LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Smooth Voltage ramping for motor control

First here is what I'm trying to accomplish. I have 2 motors I need to control. Think of it like an etch-a-sketch. One controls the vertical axis and the other horizontal. 

I need to smoothly go through the full range of motion of one motor and directly to the next and step them back down in the same order.

 

Motor1 0-5V, motor2 0-5V, motor1 5-0V, motor2 5-0V. 

If you think of the etch-a-sketch you would make a rectangle if that helps...

 

My first question is: For smooth transitions is it better to control voltage output or current output to the motor.

My second is: How do I modify the program to sequence these events and then reverse them?

0 Kudos
Message 1 of 8
(3,088 Views)

I can't open your VI so I apologize if you already have this.

 

Search for a Ramp Pattern VI.  This will divide up the range between min and max into any number of points.  The first inclination is that more points will result in a smoother transition but that is not necessarily true, depending on your setup and if you're using an external power supply to drive the motors.  You will want to be conscious of the power supply and how long it takes for it to respond to a command. 

 

I don't think voltage or current control matters too much. 

 

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 2 of 8
(3,070 Views)

this is the one i found that im working with

0 Kudos
Message 3 of 8
(2,979 Views)

Hi c.,

 

open Quickdrop (Ctrl-space) and type "ramp" to find the Ramp function…

Best regards,
GerdW


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

all that comes up when i use the quick drop and type ramp is "color ramp"

0 Kudos
Message 5 of 8
(2,950 Views)

Hi C,

 

are you using a basic version of LabVIEW?

Otherwise you should find the function in the signal processing palette...

Best regards,
GerdW


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

labview 2014 sp1

0 Kudos
Message 7 of 8
(2,935 Views)

ok found it now

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