LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Attaching a Servo Motor To A HingeJoint

I have been working on attaching servo motor to control the angle of a hinge. However, whenever I try and change the properties of the hinge joint, like max force, fudge factor, lo and hi stops it has no effect on the joint. It seems as if the servo motor disregards the joint properties in the simulation. If I set FMax to zero and even the rate to zero the servo will still move. This should not be the case. Has anyone created a hinge joint attached to a servo that has a good idea on how this works?

Below is the code to demonstrate how I am attaching my servo to the hingejoint.

 

Servo and Hinge

 

 

Thanks,

Dan

 

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

Hi Dan,

 

I'd like to recommend you to simplify your code and see if you can get it working in a very simple case, and then add in complexity and see where it goes wrong.

 

Warm Regards,

Miguel Fonseca

National Instruments

Applications Engineering 

 

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

Could you possibly provide a simple example of how to create a hingejoint with a servo attached to it?

I have checked the Examples and cannot find an example on where a hingejoint is created and a servo motor attached.

Thanks,

Dan

0 Kudos
Message 3 of 4
(3,311 Views)

Hi,

 

The examples shipped with the toolkit are the only ones that I have available.

You can also try to find more examples on http:// www.ni.com/code  

I'll try to find an example on NI community and I'll post it if I can find a good one for you.

 

Best Regards

Miguel Fonseca

Applications Engineer

National Instruments

http://www.ni.com/support

0 Kudos
Message 4 of 4
(3,304 Views)