void initialize(InspectionScript script, string CsvFileName) { OutputUnits = script.OutputUnit; ScanFormat = script.ScanFormat; DataFormat = RawDataFormat.RADIAL; Filename = CsvFileName; _headerRowCount = 0; _firstDataRow = 4; _firstDataCol = 2; data = new List <double>(); }
public KeyenceDualSiDataSet(InspectionScript inspScript, string CsvFileName) { probeData = new List <KeyenceSiDataSet>(); if (inspScript is CylInspScript cylScript) { double phaseDifference = (cylScript.ProbeSetup.PhaseDiffRad) / (Math.PI * 2.0); probeIndexOffset = (int)(Math.Round(cylScript.PointsPerRevolution * phaseDifference)); probeData.Add(new KeyenceSiDataSet(cylScript, CsvFileName, 1)); probeData.Add(new KeyenceSiDataSet(cylScript, CsvFileName, 2)); } }
public KeyenceSiDataSet(InspectionScript script, string CsvFileName, int probeNumber) { try { initialize(script, CsvFileName); int dataColumn = _firstDataCol + probeNumber - 1; ProcessFile(dataColumn); } catch (Exception) { throw; } }
public KeyenceSiDataSet(InspectionScript script, string CsvFileName) { try { initialize(script, CsvFileName); ProcessFile(_firstDataCol); } catch (Exception) { throw; } }
public KeyenceLJDataSet(InspectionScript script, string CsvFileName, MeasurementUnit fileUnits) { try { DataFormat = RawDataFormat.XY; _firstDataRow = 0; ScanFormat = script.ScanFormat; _headerRowCount = 0; Filename = CsvFileName; OutputUnits = script.OutputUnit; InputUnits = fileUnits; _minValue = script.ProbeSetup[0].MinValue(fileUnits); _maxValue = script.ProbeSetup[0].MaxValue(fileUnits); data = new List <GeometryLib.Vector2>(); ProcessFile(); } catch (Exception) { throw; } }