/// <summary>
 /// Query current acquire mode of the oscilloscope.
 /// </summary>
 public AcquireMode GetAcquireMode()
 {
     Write(":ACQuire:MODE?");
     return((AcquireMode)GetterSetterExtension.FromDescription <AcquireMode>(ReadString()));
 }
 /// <summary>
 /// Query average numbers in Average mode.
 /// </summary>
 public AcquireAverages GetAcquireAverages()
 {
     Write(":ACQuire:AVERages?");
     return((AcquireAverages)GetterSetterExtension.FromDescription <AcquireAverages>(ReadString()));
 }
    // --------- Measure commands

    // --------- Waveform commands

    // :WAVeform:DATA? is in GetWaveform() in Channel class

    /// <summary>
    /// Query mode of waveform points
    /// </summary>
    public PointsMode GetWaveformPointsMode()
    {
        Write(":WAVeform:POINts:MODE?");
        return((PointsMode)GetterSetterExtension.FromDescription <PointsMode>(ReadString()));
    }
    // --------- Acquire commands

    /// <summary>
    /// Query current acquire type of the oscilloscope.
    /// </summary>
    public AcquireType GetAcquireType()
    {
        Write(":ACQ:TYPE?");
        return((AcquireType)GetterSetterExtension.FromDescription <AcquireType>(ReadString()));
    }
 public TriggerSweep GetTriggerSweep()
 {
     Write(":TRIGger:EDGE:SWEep?");
     return((TriggerSweep)GetterSetterExtension.FromDescription <TriggerSweep>(ReadString()));
 }
    // --------- Storage commands (uncomment to enable it)

    /// <summary>
    /// Recalls the system settings before leaving factory.
    /// </summary>
    //public void StorageFactoryLoad()
    //{
    //  Write(":STORage:FACTory:LOAD");
    //}

    // --------- Math commands

    /// <summary>
    /// Query the On/Off state of the math operation
    /// </summary>
    public OnOff GetMathDisplay()
    {
        Write(":MATH:DISPlay?");
        return((OnOff)GetterSetterExtension.FromDescription <OnOff>(ReadString()));
    }
    // --------- Trigger commands

    // TODO: Complete

    /// <summary>
    /// Queries the operating status of the oscilloscope. The status could be RUN, STOP, T`D, WAIT or AUTO
    /// </summary>
    public TriggerStatus GetTriggerStatus()
    {
        Write(":TRIGger:STATus?");
        return((TriggerStatus)GetterSetterExtension.FromDescription <TriggerStatus>(ReadString()));
    }
 /// <summary>
 /// Query the horizontal timebase
 /// </summary>
 public TimebaseFormat GetTimebaseFormat()
 {
     // TODO: Delayed option
     Write(":TIMebase:FORMat?");
     return((TimebaseFormat)GetterSetterExtension.FromDescription <TimebaseFormat>(ReadString()));
 }
    // --------- Display commands
    // TODO

    // --------- Timebase commands

    /// <summary>
    /// Query scan mode of horizontal timebase
    /// </summary>
    public TimebaseMode GetTimebaseMode()
    {
        Write(":TIMebase:MODE?");
        return((TimebaseMode)GetterSetterExtension.FromDescription <TimebaseMode>(ReadString()));
    }
 /// <summary>
 /// Query the memory depth of the oscilloscope.
 /// </summary>
 public AcquireMemoryDepth GetAcquireMemoryDepth()
 {
     Write(":ACQuire:MEMDepth?");
     return((AcquireMemoryDepth)GetterSetterExtension.FromDescription <AcquireMemoryDepth>(ReadString()));
 }
Exemplo n.º 11
0
    // --------- Channel commands

    public OnOff GetBwLimit()
    {
        _oscilloscope.Write(":CHAN" + _channelID + ":BWLimit?");
        return((OnOff)GetterSetterExtension.FromDescription <OnOff>(_oscilloscope.ReadString()));
    }