Ejemplo n.º 1
0
                // Public Methods
                public void SetTriggerModeAndLevel(PeakSensorTriggerModeEnum TriggerMode, double TriggerLevel)
                {
                    _triggerMode  = TriggerMode;
                    _triggerLevel = TriggerLevel;

                    switch (TriggerMode)
                    {
                    case PeakSensorTriggerModeEnum.Internal:
                        _parentGigatronics854x.WriteString(String.Format("PEAK {0} INT TRIG {1}", _charDesignator, TriggerLevel));
                        break;

                    case PeakSensorTriggerModeEnum.External:
                        _parentGigatronics854x.WriteString(String.Format("PEAK {0} EXT TRIG {1}", _charDesignator, TriggerLevel));
                        break;

                    case PeakSensorTriggerModeEnum.CW:
                        _parentGigatronics854x.WriteString(String.Format("PEAK {0} CW", _charDesignator));
                        break;
                    }
                }
Ejemplo n.º 2
0
                // Private Methods
                private PeakSensorTriggerModeEnum GetTriggerMode()
                {
                    string retVal;

                    _parentGigatronics854x.ClearEventRegisters();
                    _parentGigatronics854x.WriteString(String.Format("PEAK {0}?", _charDesignator));
                    _parentGigatronics854x.WaitForMeasurementToComplete(_parentGigatronics854x.Timeout);
                    retVal = _parentGigatronics854x.ReadString();
                    if (retVal.Contains("EXT"))
                    {
                        _triggerMode = PeakSensorTriggerModeEnum.External;
                    }
                    else if (retVal.Contains("INT"))
                    {
                        _triggerMode = PeakSensorTriggerModeEnum.Internal;
                    }
                    else
                    {
                        _triggerMode = PeakSensorTriggerModeEnum.CW;
                    }
                    return(_triggerMode);
                }
Ejemplo n.º 3
0
 // Internal Methods
 internal override void Reset()
 {
     base.Reset();
     _triggerMode  = PeakSensorTriggerModeEnum.Internal;
     _triggerLevel = 0.00;
 }