linear actuator sample code