Yokogawa¶
Yokogawa6370
Optical Spectrum Analyzer¶
- class instruments.yokogawa.Yokogawa6370(*args, **kwargs)[source]¶
The Yokogawa 6370 is an optical spectrum analyzer.
Example usage:
>>> import instruments as ik >>> import instruments.units as u >>> inst = ik.yokogawa.Yokogawa6370.open_visa('TCPIP0:192.168.0.35') >>> inst.start_wl = 1030e-9 * u.m
Example usage with TCP/IP connection and user authentication:
>>> import instruments as ik >>> auth = ("username", "password") >>> inst = ik.yokogawa.Yokogawa6370.open_tcpip("192.168.0.35", 10001, auth=auth)
- class Channel(parent, idx)[source]¶
Class representing the channels on the Yokogawa 6370. This class inherits from
OpticalSpectrumAnalyzer.Channel
. .. warning:: This class should NOT be manually created by the user. Itis designed to be initialized by the
Yokogawa6370
class.
- class SweepModes(value)[source]¶
Enum containing valid output modes for the Yokogawa 6370
- AUTO = 3¶
- REPEAT = 2¶
- SINGLE = 1¶
- class Traces(value)[source]¶
Enum containing valid Traces for the Yokogawa 6370
- A = 'TRA'¶
- B = 'TRB'¶
- C = 'TRC'¶
- D = 'TRD'¶
- E = 'TRE'¶
- F = 'TRF'¶
- G = 'TRG'¶
- data(limits=None)[source]¶
Function to query the active Trace data of the OSA.
- Parameters:
limits – Range of samples to transfer as a tuple of min and max value, e.g. (5, 100) transfers data from the fifth to the 100th sample. The possible values are from 0 to 50000.
- start_sweep()[source]¶
Triggering function for the Yokogawa 6370. After changing the sweep mode, the device needs to be triggered before it will update.
- wavelength(limits=None)[source]¶
Query the wavelength axis of the active trace.
- Parameters:
limits – Range of samples to transfer as a tuple of min and max value, e.g. (5, 100) transfers data from the fifth to the 100th sample. The possible values are from 0 to 50000.
- property active_trace¶
The active trace of the OSA of enum Yokogawa6370.Traces. Determines the result of Yokogawa6370.data() and Yokogawa6370.wavelength().
- property bandwidth¶
The bandwidth in m.
- property center_wl¶
A floating point property that controls the center wavelength m.
- property channel¶
Gets the specific channel object. This channel is accessed as a list in the following manner:
>>> import instruments as ik >>> osa = ik.yokogawa.Yokogawa6370.open_gpibusb('/dev/ttyUSB0') >>> dat = osa.channel["A"].data # Gets the data of channel 0
- Return type:
list`[`~Yokogawa6370.Channel
]
- property id¶
Get the identification of the device. Output: ‘Manufacturer,Product,SerialNumber,FirmwareVersion’ Sample: ‘YOKOGAWA,AQ6370D,90Y403996,02.08’
- property operation_event¶
All changes after the last readout. Readout clears the operation_event Bit 4: Autosweep Bit 3: Calibration/Alignment Bit 2: Copy/File Bit 1: Program Bit 0: Sweep finished.
- property points¶
An integer property that controls the number of points in a trace.
- property span¶
A floating point property that controls the wavelength span in m.
- property start_wl¶
The start wavelength in m.
- property start_wl_max¶
- property start_wl_min¶
- property status¶
The status byte of the device. Bit 7: Summary bit of operation status Bit 5: Summary bit of standard event status register Bit 4: “1” if the output buffer contains data Bit 3: Summary bit of questionable status
- property stop_wl¶
The stop wavelength in m.
- property stop_wl_max¶
- property stop_wl_min¶
- property sweep_mode¶
A property to control the Sweep Mode as one of Yokogawa6370.SweepMode. Effective only after a self.start_sweep().
Yokogawa7651
Power Supply¶
- class instruments.yokogawa.Yokogawa7651(filelike, *args, **kwargs)[source]¶
The Yokogawa 7651 is a single channel DC power supply.
Example usage:
>>> import instruments as ik >>> import instruments.units as u >>> inst = ik.yokogawa.Yokogawa7651.open_gpibusb("/dev/ttyUSB0", 1) >>> inst.voltage = 10 * u.V
- class Channel(parent, name)[source]¶
Class representing the only channel on the Yokogawa 7651.
This class inherits from
PowerSupply.Channel
.Warning
This class should NOT be manually created by the user. It is designed to be initialized by the
Yokogawa7651
class.- property current¶
Sets the current of the specified channel. This device has an max setting of 100mA.
Querying the current is not supported by this instrument.
- property mode¶
Sets the output mode for the power supply channel. This is either constant voltage or constant current.
Querying the mode is not supported by this instrument.
- Type:
- property output¶
Sets the output status of the specified channel. This either enables or disables the output.
Querying the output status is not supported by this instrument.
- Type:
- class Mode(value)[source]¶
Enum containing valid output modes for the Yokogawa 7651
- current = 5¶
- voltage = 1¶
- trigger()[source]¶
Triggering function for the Yokogawa 7651.
After changing any parameters of the instrument (for example, output voltage), the device needs to be triggered before it will update.
- property channel¶
Gets the specific power supply channel object. Since the Yokogawa7651 is only equiped with a single channel, a list with a single element will be returned.
This (single) channel is accessed as a list in the following manner:
>>> import instruments as ik >>> yoko = ik.yokogawa.Yokogawa7651.open_gpibusb('/dev/ttyUSB0', 10) >>> yoko.channel[0].voltage = 1 # Sets output voltage to 1V
- Return type:
- property current¶
Sets the current. This device has an max setting of 100mA.
Querying the current is not supported by this instrument.