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; }
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; }
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; }
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; }
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; }
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); }
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; }
public SingleCylInspScript(ScanFormat scanFormat, MeasurementUnit outputUnit, ProbeSetup probeSetup, CalDataSet calDataSet, XAMachPostion location) : base(scanFormat, outputUnit, probeSetup, calDataSet) { Location = location; }
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; }