private void _SetPositionX(double posX) { xPos.Content = "Position in X axis: " + Math.Round(posX * 1000, 3).ToString() + " millimeters"; actualPosition.x = posX; timePX.Add(actualTime); PosX.Add(posX); }