02-11-2014 07:43 PM
Well, we are using two andymark motors with gearboxes on them to lift a mechanism on our robot. But we wanted to know how we could place a code in labview that won't allow our motors to go up anymore after a few seconds or go down anymore after a few seconds. This is done to limit the movement of the mechanism so it doesn’t break. Any ideas?
02-11-2014 07:53 PM
Hi,
If you have an encoder for the motor, you can measure the position of your motor angle and stop the motor once it reaches the position. If you don't you have to drive the motor and stop it after a time delay using the time delay functions in LabVIEW.
Regards,
02-11-2014 08:00 PM
I like the time delay idea more because our motors will have to complete more than one rotation. Now how would I go about using the time delay thing. Like where would that connect to?
02-11-2014 08:13 PM
For example, you can set motor speed and wait for 100ms and set 0 speed then. Adjust the time delay by experience.
02-11-2014 08:23 PM
So would I be-able to connect a button to that fuction and have that button preform that tast when i hit it?
02-11-2014 11:27 PM
Yes, if you are running the VI on PC host, you can put the above code inside the value change event case of the button in an Event struct.
02-12-2014 04:13 AM
May I mention i'm still at basic level labview. That sounds pretty hard. Would I be able to upload my code and you implant that for me? Or could you give me detail instructions? Or teamviewer?