Class SR830

    • Method Detail

      • getDescription

        public static java.lang.String getDescription()
      • getFrequency

        public double getFrequency()
                            throws java.io.IOException
        Description copied from interface: LockIn
        Returns the frequency of the reference signal
        Specified by:
        getFrequency in interface FMeter
        Specified by:
        getFrequency in interface LockIn
        Returns:
        Frequency, in Hz
        Throws:
        java.io.IOException - Upon communication error
      • getFrequencyRange

        public double getFrequencyRange()
                                 throws java.io.IOException,
                                        DeviceException
        Description copied from interface: FMeter
        Returns the frequency measurement range being used by the instrument, in Hz. A value of x indicates a range of +/- x.
        Specified by:
        getFrequencyRange in interface FMeter
        Returns:
        Frequency range, in +/- Hz.
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon device compatibility error
      • setFrequencyRange

        public void setFrequencyRange​(double range)
                               throws java.io.IOException,
                                      DeviceException
        Description copied from interface: FMeter
        Sets the frequency measurement range to be used by the instrument. Will select the smallest range option that contains the specified value.
        Specified by:
        setFrequencyRange in interface FMeter
        Parameters:
        range - Frequency range to use, in Hz.
        Throws:
        java.io.IOException - Upon communications error
        DeviceException - Upon device compatibility error
      • getRefPhase

        public double getRefPhase()
                           throws java.io.IOException
        Description copied from interface: LockIn
        Returns the phase of the reference signal
        Specified by:
        getRefPhase in interface LockIn
        Returns:
        Phase, in degrees
        Throws:
        java.io.IOException - Upon communication error
      • getRefAmplitude

        public double getRefAmplitude()
                               throws java.io.IOException
        Description copied from interface: LockIn
        Returns the amplitude of the reference signal
        Specified by:
        getRefAmplitude in interface LockIn
        Returns:
        Amplitude, in Volts
        Throws:
        java.io.IOException - Upon communication error
      • setOscFrequency

        public void setOscFrequency​(double freq)
                             throws java.io.IOException
        Description copied from interface: LockIn
        Sets the frequency of the internal oscillator of the amplifier (eg for internal reference)
        Specified by:
        setOscFrequency in interface LockIn
        Parameters:
        freq - Frequency, in Hz
        Throws:
        java.io.IOException - Upon communication error
      • setOscPhase

        public void setOscPhase​(double phase)
                         throws java.io.IOException
        Description copied from interface: LockIn
        Sets the phase of the internal oscillator
        Specified by:
        setOscPhase in interface LockIn
        Parameters:
        phase - Phase, in degrees
        Throws:
        java.io.IOException - Upon communication error
      • setOscAmplitude

        public void setOscAmplitude​(double amp)
                             throws java.io.IOException
        Description copied from interface: LockIn
        Sets the amplitude of the internal oscillator output.
        Specified by:
        setOscAmplitude in interface LockIn
        Parameters:
        amp - Amplitude, in volts
        Throws:
        java.io.IOException - Upon communication error
      • getRefMode

        public LockIn.RefMode getRefMode()
                                  throws java.io.IOException
        Description copied from interface: LockIn
        Returns whether the lock-in amplifier is using an internal or external reference signal.
        Specified by:
        getRefMode in interface LockIn
        Returns:
        INTERNAL or EXTERNAL
        Throws:
        java.io.IOException - Upon communication error
      • setRefMode

        public void setRefMode​(LockIn.RefMode mode)
                        throws java.io.IOException
        Description copied from interface: LockIn
        Sets whether the lock-in amplifier is to use an internal or external reference signal
        Specified by:
        setRefMode in interface LockIn
        Parameters:
        mode - INTERNAL or EXTERNAL
        Throws:
        java.io.IOException - Upon communication error
      • getLockedX

        public double getLockedX()
                          throws java.io.IOException
        Description copied from interface: DPLockIn
        Returns the amplitude of the component of the signal in-phase with the reference signal
        Specified by:
        getLockedX in interface DPLockIn
        Returns:
        Amplitude, in volts
        Throws:
        java.io.IOException - Upon communication error
      • getLockedY

        public double getLockedY()
                          throws java.io.IOException
        Description copied from interface: DPLockIn
        Returns the amplitude of the component of the signal 90 degrees out of phase with the reference signal
        Specified by:
        getLockedY in interface DPLockIn
        Returns:
        Amplitude, in volts
        Throws:
        java.io.IOException - Upon communication error
      • getLockedAmplitude

        public double getLockedAmplitude()
                                  throws java.io.IOException
        Description copied from interface: LockIn
        Returns the amplitude of the signal component locked on to by the amplifier
        Specified by:
        getLockedAmplitude in interface LockIn
        Returns:
        Amplitude, in Volts
        Throws:
        java.io.IOException - Upon communication error
      • getLockedPhase

        public double getLockedPhase()
                              throws java.io.IOException
        Description copied from interface: DPLockIn
        Returns of the phase of the locked-on signal (relative to the reference)
        Specified by:
        getLockedPhase in interface DPLockIn
        Returns:
        Phase, in degrees
        Throws:
        java.io.IOException - Upon communication error
      • getAll

        public SR830.DataPacket getAll()
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • getTimeConstant

        public double getTimeConstant()
                               throws java.io.IOException
        Description copied from interface: LockIn
        Returns the set time constant, in seconds
        Specified by:
        getTimeConstant in interface LockIn
        Returns:
        Time constant, in seconds
        Throws:
        java.io.IOException - Upon communication error
      • setTimeConstant

        public void setTimeConstant​(double seconds)
                             throws java.io.IOException
        Description copied from interface: LockIn
        Sets the time constant to use for locking onto a signal (or closest over-approximation for devices with discrete settings)
        Specified by:
        setTimeConstant in interface LockIn
        Parameters:
        seconds - Time constant, in seconds
        Throws:
        java.io.IOException - Upon communication error
      • setTimeConstant

        public void setTimeConstant​(SR830.TimeConst mode)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • getRange

        public double getRange()
                        throws java.io.IOException
        Description copied from interface: LockIn
        Returns the maximum range, in Volts, that the instrument is measuring.
        Specified by:
        getRange in interface LockIn
        Returns:
        +/- Range, in Volts
        Throws:
        java.io.IOException - Upon communication error
      • setRange

        public void setRange​(double voltRange)
                      throws java.io.IOException,
                             DeviceException
        Description copied from interface: LockIn
        Sets the sensitivity of the instrument based on the maximum range of values you desire to measure.
        Specified by:
        setRange in interface LockIn
        Parameters:
        voltRange - +/- Range, in Volts
        Throws:
        java.io.IOException - Upon communication error
        DeviceException - Upon compatibility error (eg sensitivity greater than can be achieved by instrument)
      • setSyncFilterEnabled

        public void setSyncFilterEnabled​(boolean flag)
                                  throws java.io.IOException
        Description copied from interface: LockIn
        Instructs the lock-in to use synchronous filtering (removes higher harmonics of reference frequency from signal).
        Specified by:
        setSyncFilterEnabled in interface LockIn
        Parameters:
        flag - Should this feature be enabled?
        Throws:
        java.io.IOException - Upon communication error
      • isSyncFilterEnabled

        public boolean isSyncFilterEnabled()
                                    throws java.io.IOException
        Description copied from interface: LockIn
        Returns whether the lock-in is currently using synchronous filtering.
        Specified by:
        isSyncFilterEnabled in interface LockIn
        Returns:
        Enabled?
        Throws:
        java.io.IOException - Upon communication error
      • getFilterRollOff

        public double getFilterRollOff()
                                throws java.io.IOException
        Description copied from interface: LockIn
        Returns the filter roll-off used by the lock-in.
        Specified by:
        getFilterRollOff in interface LockIn
        Returns:
        Roll-off in dB/oct
        Throws:
        java.io.IOException - Upon communication error
      • setFilterRollOff

        public void setFilterRollOff​(double dBperOct)
                              throws java.io.IOException
        Description copied from interface: LockIn
        Sets the filter roll-off for the lock-in's input filter.
        Specified by:
        setFilterRollOff in interface LockIn
        Parameters:
        dBperOct - Roll-off in dB/oct
        Throws:
        java.io.IOException - Upon communication error
      • getCoupling

        public Coupling getCoupling()
                             throws java.io.IOException
        Description copied from interface: LockIn
        Returns the input coupling mode of the lock-in.
        Specified by:
        getCoupling in interface LockIn
        Returns:
        AC or DC
        Throws:
        java.io.IOException - Upon communication error
      • setCoupling

        public void setCoupling​(Coupling mode)
                         throws java.io.IOException,
                                DeviceException
        Description copied from interface: LockIn
        Sets the input coupling mode of the lock-in.
        Specified by:
        setCoupling in interface LockIn
        Parameters:
        mode - AC or DC?
        Throws:
        java.io.IOException - Upon communication error
        DeviceException - Upon compatibility error
      • getShielding

        public Shield getShielding()
                            throws java.io.IOException
        Description copied from interface: LockIn
        Returns the currently used shielding mode for input connections.
        Specified by:
        getShielding in interface LockIn
        Returns:
        Shield.FLOAT or Shield.GROUND
        Throws:
        java.io.IOException - Upon communication error
      • setShielding

        public void setShielding​(Shield mode)
                          throws java.io.IOException
        Description copied from interface: LockIn
        Sets the shielding mode to use for input connections.
        Specified by:
        setShielding in interface LockIn
        Parameters:
        mode - Shield.FLOAT or Shield.GROUND
        Throws:
        java.io.IOException - Upon communication error
      • getLineFilterHarmonics

        public java.util.List<java.lang.Integer> getLineFilterHarmonics()
                                                                 throws java.io.IOException
        Description copied from interface: LockIn
        Returns a list of all harmonics of the powerline frequency being filtered by the lock-in.
        Specified by:
        getLineFilterHarmonics in interface LockIn
        Returns:
        List of harmonics (list of integers)
        Throws:
        java.io.IOException - Upon communication error
      • setLineFilterHarmonics

        public void setLineFilterHarmonics​(int... harmonics)
                                    throws java.io.IOException
        Description copied from interface: LockIn
        Attempts to set the lock-in to filter all the specified harmonics of the powerline frequency. Any unavailable harmonics will be ignored.
        Specified by:
        setLineFilterHarmonics in interface LockIn
        Parameters:
        harmonics - Harmonics to filter, as integers (ie 1, 4, 5 for 1st 4th and 5th)
        Throws:
        java.io.IOException - Upon communication error
      • setOffsetExpansion

        public void setOffsetExpansion​(double offset,
                                       double expansion)
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • getOffset

        public double getOffset()
                         throws java.io.IOException
        Description copied from interface: LockIn
        Returns the offset currently being used by the lock-in.
        Specified by:
        getOffset in interface LockIn
        Returns:
        Offset as % of measurement range
        Throws:
        java.io.IOException - Upon communication error
      • setOffset

        public void setOffset​(double offset)
                       throws java.io.IOException
        Description copied from interface: LockIn
        Sets the offset for input measurements.
        Specified by:
        setOffset in interface LockIn
        Parameters:
        offset - Offset as % of measurement range
        Throws:
        java.io.IOException - Upon communication error
      • getExpansion

        public double getExpansion()
                            throws java.io.IOException
        Description copied from interface: LockIn
        Returns the signal expansion factor being used
        Specified by:
        getExpansion in interface LockIn
        Returns:
        Expansion factor
        Throws:
        java.io.IOException - Upon communication error
      • setExpansion

        public void setExpansion​(double expand)
                          throws java.io.IOException
        Description copied from interface: LockIn
        Sets the signal expansion factor to use. Will choose closest discrete option if not continuous.
        Specified by:
        setExpansion in interface LockIn
        Parameters:
        expand - Expansion factor
        Throws:
        java.io.IOException - Upon communication error
      • autoOffsetX

        public void autoOffsetX()
                         throws java.io.IOException
        Specified by:
        autoOffsetX in interface DPLockIn
        Throws:
        java.io.IOException
      • autoOffsetY

        public void autoOffsetY()
                         throws java.io.IOException
        Specified by:
        autoOffsetY in interface DPLockIn
        Throws:
        java.io.IOException
      • autoOffsetAmplitude

        public void autoOffsetAmplitude()
                                 throws java.io.IOException
        Specified by:
        autoOffsetAmplitude in interface DPLockIn
        Throws:
        java.io.IOException
      • autoRange

        public void autoRange​(double factor,
                              double intTime,
                              long waitTime)
                       throws java.io.IOException,
                              DeviceException,
                              java.lang.InterruptedException
        Description copied from interface: LockIn
        Instruct the lock-in to automatically determine the measurement range to use for the currently measured input. This is done by picking the smallest range (multiplied by the supplied factor) within which the current value fits within after any offsetting. Does not return until completed.
        Specified by:
        autoRange in interface LockIn
        Parameters:
        factor - Multiplicative factor used to modify the range (i.e. 0.5 would mean the value must fit within half of the range selected)
        Throws:
        java.io.IOException - Upon communication error
        DeviceException - Upon compatibility error
        java.lang.InterruptedException - Upon interruption error
      • getExternalTriggerMode

        public LockIn.TrigMode getExternalTriggerMode()
                                               throws java.io.IOException
        Description copied from interface: LockIn
        Returns the triggering mode used for external referencing (SINE, POS_TTL, NEG_TTL).
        Specified by:
        getExternalTriggerMode in interface LockIn
        Returns:
        Triggering mode
        Throws:
        java.io.IOException - Upon communication error
      • setExternalTriggerMode

        public void setExternalTriggerMode​(LockIn.TrigMode mode)
                                    throws java.io.IOException
        Description copied from interface: LockIn
        Sets the triggering mode used for external referencing (SINE, POS_TTL, NEG_TTL).
        Specified by:
        setExternalTriggerMode in interface LockIn
        Parameters:
        mode - Triggering mode
        Throws:
        java.io.IOException - Upon communication error
      • setInput

        public void setInput​(Input input)
                      throws java.io.IOException
        Description copied from interface: LockIn
        Sets which input the lock-in should use.
        Specified by:
        setInput in interface LockIn
        Parameters:
        input - Input: A, B or DIFF (A - B)
        Throws:
        java.io.IOException - Upon communication error
      • getInput

        public Input getInput()
                       throws java.io.IOException
        Description copied from interface: LockIn
        Returns which input is currently being used by the lock-in.
        Specified by:
        getInput in interface LockIn
        Returns:
        Input: A, B or DIFF (A - B)
        Throws:
        java.io.IOException - Upon communication error
      • setSource

        public void setSource​(Source source)
                       throws java.io.IOException
        Description copied from interface: LockIn
        Sets which source quantity to be using for measurement (voltage or current).
        Specified by:
        setSource in interface LockIn
        Parameters:
        source - Source.VOLTAGE or Source.CURRENT
        Throws:
        java.io.IOException - Upon communication error
      • getSource

        public Source getSource()
                         throws java.io.IOException
        Description copied from interface: LockIn
        Returns which quantity is being used for measurement (voltage or current).
        Specified by:
        getSource in interface LockIn
        Returns:
        Source.VOLTAGE or Source.CURRENT
        Throws:
        java.io.IOException - Upon communication error
      • setImpedanceMode

        public void setImpedanceMode​(Impedance mode)
                              throws java.io.IOException
        Description copied from interface: LockIn
        Sets whether to use HIGH or LOW impedance mode for input signals.
        Specified by:
        setImpedanceMode in interface LockIn
        Parameters:
        mode - Impedance.HIGH or Impedance.LOW
        Throws:
        java.io.IOException - Upon communication error
      • getImpedanceMode

        public Impedance getImpedanceMode()
                                   throws java.io.IOException
        Description copied from interface: LockIn
        Returns whether HIGH or LOW impedance mode is currently in use.
        Specified by:
        getImpedanceMode in interface LockIn
        Returns:
        Impedance.HIGH or Impedance.LOW
        Throws:
        java.io.IOException - Upon communication error
      • getTimeConst

        public SR830.TimeConst getTimeConst()
                                     throws java.io.IOException
        Throws:
        java.io.IOException