diff --git a/ScimitarStandardTemplate.sln b/ScimitarStandardTemplate.sln
new file mode 100644
index 0000000..53ec4cb
--- /dev/null
+++ b/ScimitarStandardTemplate.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.34407.143
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScimitarStandardTemplate", "ScimitarStandardTemplate\ScimitarStandardTemplate.csproj", "{3E555A2D-DC3F-4234-9FB4-4076BBFD4A25}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {3E555A2D-DC3F-4234-9FB4-4076BBFD4A25}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {3E555A2D-DC3F-4234-9FB4-4076BBFD4A25}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {3E555A2D-DC3F-4234-9FB4-4076BBFD4A25}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {3E555A2D-DC3F-4234-9FB4-4076BBFD4A25}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {FE93CF84-54EB-4AA5-AAF3-69FAE1B199BB}
+ EndGlobalSection
+EndGlobal
diff --git a/ScimitarStandardTemplate/App.config b/ScimitarStandardTemplate/App.config
new file mode 100644
index 0000000..56efbc7
--- /dev/null
+++ b/ScimitarStandardTemplate/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ScimitarStandardTemplate/App.xaml b/ScimitarStandardTemplate/App.xaml
new file mode 100644
index 0000000..039af15
--- /dev/null
+++ b/ScimitarStandardTemplate/App.xaml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/ScimitarStandardTemplate/App.xaml.cs b/ScimitarStandardTemplate/App.xaml.cs
new file mode 100644
index 0000000..8bce62c
--- /dev/null
+++ b/ScimitarStandardTemplate/App.xaml.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows;
+
+namespace ScimitarStandardTemplate
+{
+ ///
+ /// Interaction logic for App.xaml
+ ///
+ public partial class App : Application
+ {
+ }
+}
diff --git a/ScimitarStandardTemplate/MainWindow.xaml b/ScimitarStandardTemplate/MainWindow.xaml
new file mode 100644
index 0000000..cb7954c
--- /dev/null
+++ b/ScimitarStandardTemplate/MainWindow.xaml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ScimitarStandardTemplate/MainWindow.xaml.cs b/ScimitarStandardTemplate/MainWindow.xaml.cs
new file mode 100644
index 0000000..d176b46
--- /dev/null
+++ b/ScimitarStandardTemplate/MainWindow.xaml.cs
@@ -0,0 +1,182 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+using System.Xml;
+using System.Xml.Serialization;
+
+namespace ScimitarStandardTemplate
+{
+ ///
+ /// Interaction logic for MainWindow.xaml
+ ///
+ public partial class MainWindow : Window
+ {
+ public string FileName { get; set; }
+ public List spotMeasurements = new List();
+ public List curveTraces = new List();
+ public XmlDocument xmlDocument = new XmlDocument();
+
+ public MainWindow()
+ {
+ InitializeComponent();
+ AddStandardSpots();
+ AddStandardCurveTraces();
+ Serialize();
+
+ }
+ private void LoadXmlDocument (string path)
+ {
+ try
+ {
+ this.xmlDocument.Load(path);
+ }
+ catch (Exception)
+ {
+ throw;
+ }
+ }
+ private void Serialize()
+ {
+ XmlSerializer x = new XmlSerializer(spotMeasurements[0].GetType());
+ x.Serialize(Console.Out, spotMeasurements[0]);
+ //x = new XmlSerializer(curveTraces[0].GetType());
+ //x.Serialize(Console.Out, curveTraces[0]);
+ }
+
+
+ private void AddStandardCurveTraces()
+ {
+ var curveTrace1 = new curveTrace()
+ {
+ name = "-1mA..+1mA;Steps:51;Limit:2V",
+ desc = "",
+ settlingTime = "0.01",
+ supplyName = "MKx-style (30V/5A)",
+ limit = "2",
+ forceType = "Current",
+ percentageOfLineCycle = "_10_",
+ compareAlgorithm = "Percentage",
+ maxVoltage = "10",
+ minVoltage = "10",
+ maxCurrent = "10",
+ minCurrent = "10",
+ voltageAutoRange = "false",
+ currentAutoRange = "false",
+ start = "-0.001",
+ stop = "0.001",
+ stepCount = "51",
+ initialSettlingTime = "0.01",
+ stepSettlingTIme = "0.002",
+ selfChecks = "OpenCircuit, ShortToGround"
+ };
+
+ this.curveTraces.Add(curveTrace1);
+
+ }
+
+ private void AddStandardSpots ()
+ {
+ var spotMeasurement1 = new spotMeasurement()
+ {
+ name = "-10uA; Limit: 2V",
+ desc = "",
+ settlingTime = "0.003",
+ supplyName = "MKx-style (30V/5A)",
+ limit = "2",
+ forceType = "Current",
+ percentageOfLineCycle = "_10_",
+ compareAlgorithm = "Percentage",
+ maxVoltage = "10",
+ minVoltage = "10",
+ maxCurrent = "10",
+ minCurrent = "10",
+ voltageAutoRange = "false",
+ currentAutoRange = "false",
+ spotCount = "1",
+ spots = new spot[] { new spot { stress = "-0.00001", minimum = "-1.9", maximum = "-0.1" } }
+ };
+
+ var spotMeasurement2 = new spotMeasurement()
+ {
+ name = "+10uA; Limit: 2V",
+ desc = "",
+ settlingTime = "0.003",
+ supplyName = "MKx-style (30V/5A)",
+ limit = "2",
+ forceType = "Current",
+ percentageOfLineCycle = "_10_",
+ compareAlgorithm = "Percentage",
+ maxVoltage = "10",
+ minVoltage = "10",
+ maxCurrent = "10",
+ minCurrent = "10",
+ voltageAutoRange = "false",
+ currentAutoRange = "false",
+ spotCount = "1",
+ spots = new spot[] { new spot { stress = "0.00001", minimum = "0.1", maximum = "1.9" } }
+ };
+
+ var spotMeasurement3 = new spotMeasurement()
+ {
+ name = "-1mA; Limit: 2V (SHORT/R)",
+ desc = "",
+ settlingTime = "0.003",
+ supplyName = "MKx-style (30V/5A)",
+ limit = "2",
+ forceType = "Current",
+ percentageOfLineCycle = "_10_",
+ compareAlgorithm = "Percentage",
+ maxVoltage = "10",
+ minVoltage = "10",
+ maxCurrent = "10",
+ minCurrent = "10",
+ voltageAutoRange = "false",
+ currentAutoRange = "false",
+ spotCount = "1",
+ spots = new spot[] { new spot { stress = "-0.001", minimum = "-0.200", maximum = "0.200" } }
+ };
+
+ spotMeasurements.Add(spotMeasurement1);
+ //spotMeasurements.Add(spotMeasurement2);
+ //spotMeasurements.Add(spotMeasurement3);
+ }
+
+ private void BrowseButton_Click(object sender, RoutedEventArgs e)
+ {
+ OpenFileBrowser();
+ }
+
+ private void OpenFileBrowser ()
+ {
+ // Create OpenFileDialog
+ Microsoft.Win32.OpenFileDialog dlg = new Microsoft.Win32.OpenFileDialog();
+
+ // Set filter for file extension and default file extension
+ dlg.DefaultExt = ".txt";
+ dlg.Filter = "Text documents (.txt)|*.txt";
+
+ // Display OpenFileDialog by calling ShowDialog method
+ Nullable result = dlg.ShowDialog();
+
+ // Get the selected file name and display in a TextBox
+ if (result == true)
+ {
+ // Open document
+ string filename = dlg.FileName;
+ this.FileName = filename;
+ }
+ }
+ }
+
+}
diff --git a/ScimitarStandardTemplate/ParametricOperation.cs b/ScimitarStandardTemplate/ParametricOperation.cs
new file mode 100644
index 0000000..b351855
--- /dev/null
+++ b/ScimitarStandardTemplate/ParametricOperation.cs
@@ -0,0 +1,46 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Xml.Serialization;
+
+namespace ScimitarStandardTemplate
+{
+ public class ParametricOperation
+ {
+ [XmlAttribute]
+ public string name { get; set; }
+ [XmlAttribute]
+ public string desc { get; set; }
+ [XmlAttribute]
+ public string settlingTime { get; set; }
+ [XmlAttribute]
+ public string supplyName { get; set; }
+ [XmlAttribute]
+ public string limit { get; set; }
+ [XmlAttribute]
+ public string forceType { get; set; }
+ [XmlAttribute]
+ public string percentageOfLineCycle { get; set; }
+ [XmlAttribute]
+ public string compareAlgorithm { get; set; }
+ [XmlAttribute]
+ public string maxVoltage { get; set; }
+ [XmlAttribute]
+ public string minVoltage { get; set; }
+ [XmlAttribute]
+ public string maxCurrent { get; set; }
+ [XmlAttribute]
+ public string minCurrent { get; set; }
+ [XmlAttribute]
+ public string voltageAutoRange { get; set; }
+ [XmlAttribute]
+ public string currentAutoRange { get; set; }
+
+ public ParametricOperation()
+ {
+
+ }
+ }
+}
diff --git a/ScimitarStandardTemplate/Properties/AssemblyInfo.cs b/ScimitarStandardTemplate/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..ce723bc
--- /dev/null
+++ b/ScimitarStandardTemplate/Properties/AssemblyInfo.cs
@@ -0,0 +1,55 @@
+using System.Reflection;
+using System.Resources;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Windows;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("ScimitarStandardTemplate")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("ScimitarStandardTemplate")]
+[assembly: AssemblyCopyright("Copyright © 2024")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+//In order to begin building localizable applications, set
+//CultureYouAreCodingWith in your .csproj file
+//inside a . For example, if you are using US english
+//in your source files, set the to en-US. Then uncomment
+//the NeutralResourceLanguage attribute below. Update the "en-US" in
+//the line below to match the UICulture setting in the project file.
+
+//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
+
+
+[assembly: ThemeInfo(
+ ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
+ //(used if a resource is not found in the page,
+ // or application resource dictionaries)
+ ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
+ //(used if a resource is not found in the page,
+ // app, or any theme specific resource dictionaries)
+)]
+
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/ScimitarStandardTemplate/Properties/Resources.Designer.cs b/ScimitarStandardTemplate/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..8d66a9e
--- /dev/null
+++ b/ScimitarStandardTemplate/Properties/Resources.Designer.cs
@@ -0,0 +1,70 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+
+namespace ScimitarStandardTemplate.Properties
+{
+ ///
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ ///
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources
+ {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources()
+ {
+ }
+
+ ///
+ /// Returns the cached ResourceManager instance used by this class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if ((resourceMan == null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ScimitarStandardTemplate.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/ScimitarStandardTemplate/Properties/Resources.resx b/ScimitarStandardTemplate/Properties/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/ScimitarStandardTemplate/Properties/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/ScimitarStandardTemplate/Properties/Settings.Designer.cs b/ScimitarStandardTemplate/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..002e80b
--- /dev/null
+++ b/ScimitarStandardTemplate/Properties/Settings.Designer.cs
@@ -0,0 +1,29 @@
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.42000
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+
+namespace ScimitarStandardTemplate.Properties
+{
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default
+ {
+ get
+ {
+ return defaultInstance;
+ }
+ }
+ }
+}
diff --git a/ScimitarStandardTemplate/Properties/Settings.settings b/ScimitarStandardTemplate/Properties/Settings.settings
new file mode 100644
index 0000000..033d7a5
--- /dev/null
+++ b/ScimitarStandardTemplate/Properties/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ScimitarStandardTemplate/ScimitarStandardTemplate.csproj b/ScimitarStandardTemplate/ScimitarStandardTemplate.csproj
new file mode 100644
index 0000000..152ac3b
--- /dev/null
+++ b/ScimitarStandardTemplate/ScimitarStandardTemplate.csproj
@@ -0,0 +1,101 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {3E555A2D-DC3F-4234-9FB4-4076BBFD4A25}
+ WinExe
+ ScimitarStandardTemplate
+ ScimitarStandardTemplate
+ v4.7.2
+ 512
+ {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ 4
+ true
+ true
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+
+
+
+
+
+
+
+
+ 4.0
+
+
+
+
+
+
+
+ MSBuild:Compile
+ Designer
+
+
+
+
+ MSBuild:Compile
+ Designer
+
+
+ App.xaml
+ Code
+
+
+
+ MainWindow.xaml
+ Code
+
+
+
+
+ Code
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ScimitarStandardTemplate/curveTrace.cs b/ScimitarStandardTemplate/curveTrace.cs
new file mode 100644
index 0000000..de30421
--- /dev/null
+++ b/ScimitarStandardTemplate/curveTrace.cs
@@ -0,0 +1,25 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Xml.Serialization;
+
+namespace ScimitarStandardTemplate
+{
+ public class curveTrace : ParametricOperation
+ {
+ [XmlAttribute]
+ public string start { get; set; }
+ [XmlAttribute]
+ public string stop { get; set; }
+ [XmlAttribute]
+ public string stepCount { get; set; }
+ [XmlAttribute]
+ public string initialSettlingTime { get; set; }
+ [XmlAttribute]
+ public string stepSettlingTIme { get; set; }
+ [XmlAttribute]
+ public string selfChecks { get; set; }
+ }
+}
diff --git a/ScimitarStandardTemplate/spotMeasurement.cs b/ScimitarStandardTemplate/spotMeasurement.cs
new file mode 100644
index 0000000..9dbcd83
--- /dev/null
+++ b/ScimitarStandardTemplate/spotMeasurement.cs
@@ -0,0 +1,50 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Xml.Serialization;
+
+namespace ScimitarStandardTemplate
+{
+ public class spotMeasurement : ParametricOperation
+ {
+ [XmlAttribute]
+ public string spotCount { get; set; }
+
+ [XmlElement("spot")]
+ public spot[] spots { get; set; }
+ //public int[] nee;
+
+ public spotMeasurement()
+ {
+
+ }
+ }
+
+ public class spot
+ {
+ ///
+ /// stress value
+ ///
+ [XmlAttribute]
+ public string stress { get; set; }
+
+ ///
+ /// minimum value
+ ///
+ [XmlAttribute]
+ public string minimum { get; set; }
+
+ ///
+ /// maximum value
+ ///
+ [XmlAttribute]
+ public string maximum { get; set; }
+
+ public spot()
+ {
+
+ }
+ }
+}