Beispiel #1
0
        public void ParseAxialFilename(string filename)
        {
            var fileCodes = ParseFilename(filename);

            start      = new XAMachPostion();
            end        = new XAMachPostion();
            start.X    = getVal(fileCodes[2], _linAxisName);
            end.X      = getVal(fileCodes[3], _linAxisName);
            start.Adeg = 0;
            end.Adeg   = 0;
        }
Beispiel #2
0
        public SpiralInspScript(ScanFormat scanFormat, MeasurementUnit outputUnit, ProbeSetup probeSetup, CalDataSet calDataSet
                                , XAMachPostion start, XAMachPostion end, int pointsPerRev, double spiralPitchInch)
            : base(scanFormat, outputUnit, probeSetup, calDataSet, start, end, pointsPerRev)
        {
            var scanDir = Math.Sign(EndLocation.X - StartLocation.X) * Math.Sign(EndLocation.Adeg - StartLocation.Adeg);

            if (scanDir == 0)
            {
                scanDir = 1;
            }
            PitchInch = scanDir * spiralPitchInch;
        }
Beispiel #3
0
        public MultiRingScript(ScanFormat scanFormat, MeasurementUnit outputUnit, ProbeSetup probeSetup, CalDataSet calDataSet
                               , XAMachPostion start, XAMachPostion end, int pointsPerRev, int pointsToSkip, double ringSpacing)
            : base(scanFormat, outputUnit, probeSetup, calDataSet, start, end, pointsPerRev)
        {
            var scanDir = Math.Sign(EndLocation.X - StartLocation.X) * Math.Sign(EndLocation.Adeg - StartLocation.Adeg);

            if (scanDir == 0)
            {
                scanDir = 1;
            }
            PointsToSkip = pointsToSkip;
            RingSpacing  = ringSpacing;
        }
Beispiel #4
0
        public AxialInspScript(ScanFormat scanFormat, MeasurementUnit outputUnit, ProbeSetup probeSetup, CalDataSet calDataSet
                               , XAMachPostion start, XAMachPostion end, double axialInc)
            : base(scanFormat, outputUnit, probeSetup, calDataSet, start, end, 0)
        {
            StartLocation = start;
            EndLocation   = end;
            int scanDir = Math.Sign(EndLocation.X - StartLocation.X);

            if (scanDir == 0)
            {
                scanDir = 1;
            }
            AxialIncrement = scanDir * axialInc;
        }
Beispiel #5
0
        public CylInspScript(ScanFormat scanFormat, MeasurementUnit outputUnit, ProbeSetup probeSetup, CalDataSet calDataSet
                             , XAMachPostion start, XAMachPostion end, int pointsPerRev)
            : base(scanFormat, outputUnit, probeSetup, calDataSet)
        {
            PointsPerRevolution = pointsPerRev;
            StartLocation       = start;
            EndLocation         = end;
            var scanDir = Math.Sign(EndLocation.Adeg - StartLocation.Adeg);

            if (scanDir == 0)
            {
                scanDir = 1;
            }
            AngleIncrement = scanDir * Math.PI * 2 / PointsPerRevolution;
        }
Beispiel #6
0
        public void ParseSpiralname(string filename)
        {
            var fileCodes = ParseFilename(filename);

            start      = new XAMachPostion();
            end        = new XAMachPostion();
            start.X    = getVal(fileCodes[2], _linAxisName);
            end.X      = getVal(fileCodes[3], _linAxisName);
            start.Adeg = getVal(fileCodes[4], _rotAxisName);
            end.Adeg   = getVal(fileCodes[5], _rotAxisName);
            var dx = end.X - start.X;
            var da = end.Adeg - start.Adeg;

            rotations = (int)Math.Ceiling(da / 360);
        }
Beispiel #7
0
        public RasterInspScript(ScanFormat scanFormat, MeasurementUnit outputUnit, ProbeSetup probeSetup, CalDataSet calDataSet
                                , XAMachPostion start, XAMachPostion end, int pointsPerRev, double axialInc)
            : base(scanFormat, outputUnit, probeSetup, calDataSet)
        {
            PointsPerRevolution = pointsPerRev;
            var sign = Math.Sign(EndLocation.X - StartLocation.X);

            AxialIncrement = sign * axialInc;

            var scanDir = Math.Sign(EndLocation.Adeg - StartLocation.Adeg);

            if (scanDir == 0)
            {
                scanDir = 1;
            }
            AngleIncrement = scanDir * Math.PI * 2 / PointsPerRevolution;
        }
Beispiel #8
0
 public SingleCylInspScript(ScanFormat scanFormat, MeasurementUnit outputUnit, ProbeSetup probeSetup, CalDataSet calDataSet,
                            XAMachPostion location) : base(scanFormat, outputUnit, probeSetup, calDataSet)
 {
     Location = location;
 }
Beispiel #9
0
 public GrooveInspScript(ScanFormat scanFormat, MeasurementUnit outputUnit, ProbeSetup probeSetup, CalDataSet calDataSet
                         , XAMachPostion start, XAMachPostion end, double axialInc, BarrelLib.TwistProfile twistProfile)
     : base(scanFormat, outputUnit, probeSetup, calDataSet, start, end, axialInc)
 {
     TwistProfile = twistProfile;
 }