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.
What function(s)/structure(s) would I use to stop a motor?
After hitting a limit switch, I want the motor to "brake": I want it to stop, but still give resistance, and disable the control to move in that direction.
Here's what I have so far.
I want Button 4 to be disabled after hiting the limit switch, and at the same time "freeze/lock" the motor in place.
How much force is going to be on the motor? If there is a low load you could simply stop the motor once the limit switch is enabled. If there is going to be a large load on the motor and you have an encoder you can set the motor to stop once the limit switch is enabled. You could then measure the position of your motor angle and create a control loop to maintain this position until an external event occurs like a fire command.
Wear National Instruments Product Support Engineer