lightlab.equipment.lab_instruments.Anritsu_MP1763B_PPG module¶
Summary¶
Classes:
Anritsu_MP1763B_PPG |
ANRITSU MP1761A PulsePatternGenerator The PPG MP1763B at Alex’s bench, which also support MP1761A (by Hsuan-Tung 07/27/2017) |
Reference¶
-
class
Anritsu_MP1763B_PPG(name='The PPG', address=None, **kwargs)[source]¶ Bases:
lightlab.equipment.visa_bases.visa_driver.VISAInstrumentDriver,lightlab.equipment.abstract_drivers.configurable.ConfigurableANRITSU MP1761A PulsePatternGenerator The PPG MP1763B at Alex’s bench, which also support MP1761A (by Hsuan-Tung 07/27/2017)
Manual (MP1763C): http://www.otntech.com/modules/catalogue/download.php?id=52&mode=download&file_name=MP1763C.pdf
Usage: Instrument: PulsePatternGenerator
-
instrument_category¶ alias of
lightlab.laboratory.instruments.interfaces.PulsePatternGenerator
-
storedPattern= None¶
-
setPattern(bitArray)[source]¶ Data bitArray for the PPG to output.
Parameters: bitArray (ndarray) – array that is boolean or binary 1/0
-
getPattern()[source]¶ Inverts the setPattern method, so you can swap several patterns around on the fly. Does not communicate with the hardware as of now.
-
syncSource(src=None)[source]¶ Output synchronizer is locked to pattern or not?
Parameters: src (str) – either ‘fixed’, ‘variable’ or ‘clock64’. If None, leaves it Returns: the set value as a string token Return type: (str)
-
amplAndOffs(amplOffs=None)[source]¶ Amplitude and offset setting/getting
Parameters: Returns: amplitude and offset, read from hardware if specified as None
Return type:
-
bitseq(chpulses, clockfreq, ext=0, addplot=False, mult=1, res=5)[source]¶ bitseq: Takes in dictionary ‘chpulses’, clock freq ‘clockfreq’, and opt. parameter ‘ext.’ Also includes plotting parameters (see below). chdelays: a dictionary in which keys are channel delays, and values contain a list of tuple pairs. Each pair contains pulse times (rising edges) and their duration (in ns). clockfreq: set the current clock frequency, in GHz ext: a continuous value from 0 to 1 which extends the pattern length, resulting in different synchronization between adjacent time windows. 0 – will result in maximum similarity between time windows, plus or minus variabilities resulting from delay lines. This is ideal when only approximate timings are required, since channels IDs can be shuffled by time scrolling through the same PPG pattern. 1 – will result in minimum similarity between adjacent time windows, at the cost of a larger total PPG pattern length. Anything beyond this value is not useful. Values between 0 and 1 will trade-off pattern length with window similarity. addplot: Adds a plot to visualize the output of the PPG along all channels. mult: graphing parameter - how many multiples of pattern length to display in time res: graphing parameter - how many sampling points per pattern bit Author: Mitchell A. Nahmias, Feb. 2018
-