This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

WEBENCH® Tools/LDC2114: Coil length calculation bug

Part Number: LDC2114


Tool/software: WEBENCH® Design Tools

Webench option: Sensors / coil designer

Issue: the coil length per layer calculation does not vary for the different coil types; the result is always calculated for a circular coil. This applies not only for the LDC2114, but for all the other inductive sensors as well.

By looking at the script "SecondTabCtrl.js", we can see that the function seems correct:

    function getCoilLength( dout , din, indexOfShape)
    {
		for(var i=0;i<$scope.drawShape.length;i++)
		{
			if($scope.drawShape[i].name == $scope.totalInductanceObject[indexOfShape].selfInductance)
			{
				return Math.PI*$scope.turns*(dout+ din)/2;
			}
			else if($scope.drawShape[i].name == $scope.totalInductanceObject[indexOfShape].selfInductance)
			{
			   return 4*$scope.turns*(dout+ din)/2;  
			}
			else if($scope.drawShape[i].name == $scope.totalInductanceObject[indexOfShape].selfInductance)
			{
			   return 3.4641*$scope.turns*(dout+ din)/2;  
			}
			else if($scope.drawShape[i].name == $scope.totalInductanceObject[indexOfShape].selfInductance)
			{
			   return 3.3137*$scope.turns*(dout+ din)/2;  
			}
		}
    }

However, the parameter indexOfShape does not seem to be passed correctly. The function call is the following:

	$scope.coilPerLength = getCoilLength($scope.outerDiameter,$scope.innerDiameter,indexOfShape);	//Math.PI*$scope.turns*($scope.outerDiameter+ $scope.innerDiameter)/2;

I would appreciate if this could be fixed.

Let me know if I can provide you with more information. 

Thank you!