Skip to content

Commit

Permalink
Generated gh-pages for commit ec64567
Browse files Browse the repository at this point in the history
Author: peendebak <P.T.eendebak@tudelft.nl>

    add update for D5mux (#888)
  • Loading branch information
Documentation Bot committed Nov 30, 2017
1 parent 263feeb commit 01d4515
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
8 changes: 5 additions & 3 deletions _modules/qcodes/instrument_drivers/QuTech/D5a.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ <h1>Source code for qcodes.instrument_drivers.QuTech.D5a</h1><div class="highlig
<span class="sd"> &quot;&quot;&quot;</span>

<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">name</span><span class="p">,</span> <span class="n">spi_rack</span><span class="p">,</span> <span class="n">module</span><span class="p">,</span> <span class="n">inter_delay</span><span class="o">=</span><span class="mf">0.1</span><span class="p">,</span> <span class="n">dac_step</span><span class="o">=</span><span class="mf">10e-3</span><span class="p">,</span>
<span class="n">reset_voltages</span><span class="o">=</span><span class="kc">False</span><span class="p">,</span> <span class="n">mV</span><span class="o">=</span><span class="kc">False</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
<span class="n">reset_voltages</span><span class="o">=</span><span class="kc">False</span><span class="p">,</span> <span class="n">mV</span><span class="o">=</span><span class="kc">False</span><span class="p">,</span> <span class="n">number_dacs</span><span class="o">=</span><span class="mi">16</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot; Create instrument for the D5a module.</span>

<span class="sd"> The D5a module works with volts as units. For backward compatibility</span>
Expand All @@ -214,11 +214,13 @@ <h1>Source code for qcodes.instrument_drivers.QuTech.D5a</h1><div class="highlig
<span class="sd"> dac_step (float): max step size (V or mV), passed to dac parameters of the object</span>
<span class="sd"> reset_voltages (bool): passed to D5a_module constructor</span>
<span class="sd"> mV (bool): if True, then use mV as units in the dac parameters</span>
<span class="sd"> number_dacs (int): number of DACs available. This is 8 for the D5mux</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span><span class="n">name</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>

<span class="bp">self</span><span class="o">.</span><span class="n">d5a</span> <span class="o">=</span> <span class="n">D5a_module</span><span class="p">(</span><span class="n">spi_rack</span><span class="p">,</span> <span class="n">module</span><span class="p">,</span> <span class="n">reset_voltages</span><span class="o">=</span><span class="n">reset_voltages</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_mV</span> <span class="o">=</span> <span class="n">mV</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_number_dacs</span> <span class="o">=</span> <span class="n">number_dacs</span>

<span class="bp">self</span><span class="o">.</span><span class="n">_span_set_map</span> <span class="o">=</span> <span class="p">{</span>
<span class="s1">&#39;4v uni&#39;</span><span class="p">:</span> <span class="mi">0</span><span class="p">,</span>
Expand All @@ -237,7 +239,7 @@ <h1>Source code for qcodes.instrument_drivers.QuTech.D5a</h1><div class="highlig
<span class="bp">self</span><span class="o">.</span><span class="n">_gain</span> <span class="o">=</span> <span class="mi">1</span>
<span class="n">unit</span> <span class="o">=</span> <span class="s1">&#39;V&#39;</span>

<span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="mi">16</span><span class="p">):</span>
<span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_number_dacs</span><span class="p">):</span>
<span class="n">validator</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_get_validator</span><span class="p">(</span><span class="n">i</span><span class="p">)</span>

<span class="bp">self</span><span class="o">.</span><span class="n">add_parameter</span><span class="p">(</span><span class="s1">&#39;dac</span><span class="si">{}</span><span class="s1">&#39;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">i</span> <span class="o">+</span> <span class="mi">1</span><span class="p">),</span>
Expand All @@ -260,7 +262,7 @@ <h1>Source code for qcodes.instrument_drivers.QuTech.D5a</h1><div class="highlig
<span class="n">docstring</span><span class="o">=</span><span class="s1">&#39;Change the output span of the DAC. This command also updates the validator.&#39;</span><span class="p">)</span>

<span class="k">def</span> <span class="nf">_set_dacs_zero</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="mi">16</span><span class="p">):</span>
<span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_number_dacs</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_set_dac</span><span class="p">(</span><span class="n">i</span><span class="p">,</span> <span class="mf">0.0</span><span class="p">)</span>

<span class="k">def</span> <span class="nf">_set_dac</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">dac</span><span class="p">,</span> <span class="n">value</span><span class="p">):</span>
Expand Down
3 changes: 2 additions & 1 deletion api/generated/qcodes.instrument_drivers.QuTech.html
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this
<span id="qcodes-instrument-drivers-qutech-d5a-module"></span><h2>qcodes.instrument_drivers.QuTech.D5a module<a class="headerlink" href="#module-qcodes.instrument_drivers.QuTech.D5a" title="Permalink to this headline"></a></h2>
<dl class="class">
<dt id="qcodes.instrument_drivers.QuTech.D5a.D5a">
<em class="property">class </em><code class="descclassname">qcodes.instrument_drivers.QuTech.D5a.</code><code class="descname">D5a</code><span class="sig-paren">(</span><em>name</em>, <em>spi_rack</em>, <em>module</em>, <em>inter_delay=0.1</em>, <em>dac_step=0.01</em>, <em>reset_voltages=False</em>, <em>mV=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/qcodes/instrument_drivers/QuTech/D5a.html#D5a"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#qcodes.instrument_drivers.QuTech.D5a.D5a" title="Permalink to this definition"></a></dt>
<em class="property">class </em><code class="descclassname">qcodes.instrument_drivers.QuTech.D5a.</code><code class="descname">D5a</code><span class="sig-paren">(</span><em>name</em>, <em>spi_rack</em>, <em>module</em>, <em>inter_delay=0.1</em>, <em>dac_step=0.01</em>, <em>reset_voltages=False</em>, <em>mV=False</em>, <em>number_dacs=16</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="reference internal" href="../../_modules/qcodes/instrument_drivers/QuTech/D5a.html#D5a"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#qcodes.instrument_drivers.QuTech.D5a.D5a" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">qcodes.instrument.base.Instrument</span></code></p>
<p>Qcodes driver for the D5a DAC SPI-rack module.</p>
<p>functions:
Expand Down Expand Up @@ -285,6 +285,7 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this
<li><strong>dac_step</strong> (<a class="reference external" href="https://docs.python.org/3.5/library/functions.html#float" title="(in Python v3.5)"><em>float</em></a>) – max step size (V or mV), passed to dac parameters of the object</li>
<li><strong>reset_voltages</strong> (<a class="reference external" href="https://docs.python.org/3.5/library/functions.html#bool" title="(in Python v3.5)"><em>bool</em></a>) – passed to D5a_module constructor</li>
<li><strong>mV</strong> (<a class="reference external" href="https://docs.python.org/3.5/library/functions.html#bool" title="(in Python v3.5)"><em>bool</em></a>) – if True, then use mV as units in the dac parameters</li>
<li><strong>number_dacs</strong> (<a class="reference external" href="https://docs.python.org/3.5/library/functions.html#int" title="(in Python v3.5)"><em>int</em></a>) – number of DACs available. This is 8 for the D5mux</li>
</ul>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit 01d4515

Please sign in to comment.