public void Enable()
 {
     if (!enabled)
     {
         _driver.SendCommandRequest("en");
     }
     enabled = true;
 }
Exemple #2
0
        private void _SetShape(ShapeMode mode)
        {
            if (mode != _currentShapeMode)
            {
                _currentShapeMode = mode;

                switch (mode)
                {
                case ShapeMode.DC:
                    _driver.SendCommandRequest(":SOUR:FUNC:SHAP DC");
                    break;

                case ShapeMode.Pulse:
                    _driver.SendCommandRequest(":SOUR:FUNC:SHAP PULS");
                    break;

                default:
                    break;
                }
            }
        }
Exemple #3
0
 public void Initialize(IDeviceIO Driver, string channelID = "Not supported for Keithley24xx series!")
 {
     _driver = Driver;
     _driver.SendCommandRequest("*RST");
     _stopWatch = new Stopwatch();
 }
Exemple #4
0
 public void Initialize(IDeviceIO Driver)
 {
     _driver = Driver;
     _driver.SendCommandRequest("*RST");
     _stopWatch = new Stopwatch();
 }
Exemple #5
0
        public void SetCompliance(SMUSourceMode sourceMode, double compliance)
        {
            switch (sourceMode)
            {
            case SMUSourceMode.Voltage:
            {
                if (compliance != _currentCurrentCompliance)
                {
                    _currentCurrentCompliance = compliance;
                    _driver.SendCommandRequest(string.Format(":SENS:CURR:PROT {0}", compliance.ToString(NumberFormatInfo.InvariantInfo)));
                }
            } break;

            case SMUSourceMode.Current:
            {
                var query = (from limit in _VSourceProtectionLimits
                             where limit - Math.Abs(compliance) >= 0.0
                             select new
                    {
                        limit,
                        distance = limit - Math.Abs(compliance)
                    }).OrderBy(p => p.distance).First().limit;

                if (query != _currentVoltageCompliance)
                {
                    _currentVoltageCompliance = query;
                    _driver.SendCommandRequest(string.Format(":SENS:VOLT:PROT {0}", query.ToString(NumberFormatInfo.InvariantInfo)));
                }
            } break;

            default:
                break;
            }
        }
Exemple #6
0
 /// <summary>
 /// This function switches to the user screen and then clears the display.
 /// The display.clear(), display.setcursor(), and display.settext() functions are overlapped
 /// commands. That is, the script does not wait for one of these commands to complete. These functions do not
 /// immediately update the display. For performance considerations, they update the physical display as soon as
 /// processing time becomes available.
 /// </summary>
 public void Clear()
 {
     _driver.SendCommandRequest("display.clear()");
 }
 public void Initialize(IDeviceIO Driver, string channelID = "Not supported for Keithley24xx series!")
 {
     _driver = Driver;
     _driver.SendCommandRequest("*RST");
     _stopWatch = new Stopwatch();
 }
 public void Initialize(IDeviceIO Driver)
 {
     _driver = Driver;
     _driver.SendCommandRequest("*RST");
     _stopWatch = new Stopwatch();
 }
 /// <summary>
 /// Return to source-measure display state.
 /// </summary>
 public void SetSMU_DisplayState()
 {
     _driver.SendCommandRequest(string.Format("{0}{1}", SubsystemIdentifier, ":CND"));
 }
Exemple #10
0
        private void _LoadDeviceFunctions()
        {
            var formatString = "loadscript {0}\n{1}\nendscript\n{0}.run()\n";

            switch (ChannelIdentifier)
            {
            case "a":
                _driver.SendCommandRequest(string.Format(formatString, "DeviceFunctionsChannelA", Properties.Resources.DeviceFunctionsChannelA));
                break;

            case "b":
                _driver.SendCommandRequest(string.Format(formatString, "DeviceFunctionsChannelB", Properties.Resources.DeviceFunctionsChannelB));
                break;
            }
        }