How to simulate a spring

Such as title. I want to simulate a linear spring. I built a linear joint, and give the limit is 0 to 0, but a limit stiffness. It did not work.

please see if this doc is helpful for you: Articulations — NVIDIA PhysX SDK 3.4.0 Documentation