Skip to content

Commit

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

    add one more exception to the catch in slack module (#675)
  • Loading branch information
Documentation Bot committed Jul 20, 2017
1 parent 9853cc6 commit 4c476dd
Show file tree
Hide file tree
Showing 14 changed files with 122 additions and 94 deletions.
28 changes: 19 additions & 9 deletions _notebooks/Creating Instrument Drivers.html
Expand Up @@ -391,8 +391,8 @@ <h2>DLL-based instruments<a class="headerlink" href="#dll-based-instruments" tit
<div class="section" id="manual-instruments">
<h2>Manual instruments<a class="headerlink" href="#manual-instruments" title="Permalink to this headline"></a></h2>
<p>A totally manual instrument (like the ithaco 1211) will contain only
<code class="docutils literal"><span class="pre">ManualParameter``s.</span> <span class="pre">Some</span> <span class="pre">instruments</span> <span class="pre">may</span> <span class="pre">have</span> <span class="pre">a</span> <span class="pre">mix</span> <span class="pre">of</span> <span class="pre">manual</span> <span class="pre">and</span>
<span class="pre">standard</span> <span class="pre">parameters.</span> <span class="pre">Here</span> <span class="pre">we</span> <span class="pre">also</span> <span class="pre">define</span> <span class="pre">a</span> <span class="pre">new</span> <span class="pre">``CurrentParameter</span></code>
<code class="docutils literal"><span class="pre">ManualParameter</span></code>s. Some instruments may have a mix of manual and
standard parameters. Here we also define a new <code class="docutils literal"><span class="pre">CurrentParameter</span></code>
class that uses the ithaco parameters to convert a measured voltage to a
current.</p>
<div class="code ipython3 highlight-default"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">CurrentParameter</span><span class="p">(</span><span class="n">MultiParameter</span><span class="p">):</span>
Expand Down Expand Up @@ -499,10 +499,15 @@ <h2>Manual instruments<a class="headerlink" href="#manual-instruments" title="Pe
</div>
<div class="section" id="custom-parameter-classes">
<h2>Custom Parameter classes<a class="headerlink" href="#custom-parameter-classes" title="Permalink to this headline"></a></h2>
<p>When you call: <code class="docutils literal"><span class="pre">self.add_parameter(name,</span> <span class="pre">**kwargs)</span></code> you create a
<code class="docutils literal"><span class="pre">StandardParameter</span></code>. But with the <code class="docutils literal"><span class="pre">parameter_class</span></code> kwarg you can
invoke any class you want:
<code class="docutils literal"><span class="pre">self.add_parameter(name,</span> <span class="pre">parameter_class=OtherClass,</span> <span class="pre">**kwargs)</span></code></p>
<p>When you call:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="bp">self</span><span class="o">.</span><span class="n">add_parameter</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>
</pre></div>
</div>
<p>you create a <code class="docutils literal"><span class="pre">StandardParameter</span></code>. But with the <code class="docutils literal"><span class="pre">parameter_class</span></code>
kwarg you can invoke any class you want:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="bp">self</span><span class="o">.</span><span class="n">add_parameter</span><span class="p">(</span><span class="n">name</span><span class="p">,</span> <span class="n">parameter_class</span><span class="o">=</span><span class="n">OtherClass</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
</pre></div>
</div>
<ul class="simple">
<li><code class="docutils literal"><span class="pre">StandardParameter</span></code> handles most common instrument settings and
measurements.</li>
Expand All @@ -525,9 +530,14 @@ <h2>Dynamically adding and removing parameters<a class="headerlink" href="#dynam
<p>Sometimes when conditions change (for example, the mode of operation of
the instrument is changed from current to voltage measurement) you want
different parameters to be available.</p>
<p>To delete existing parameters: <code class="docutils literal"><span class="pre">del</span> <span class="pre">self.parameters[name_to_delete]</span></code>
And to add more, do the same thing as you did initially:
<code class="docutils literal"><span class="pre">self.add_parameter(new_name,</span> <span class="pre">**kwargs)</span></code></p>
<p>To delete existing parameters:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="k">del</span> <span class="bp">self</span><span class="o">.</span><span class="n">parameters</span><span class="p">[</span><span class="n">name_to_delete</span><span class="p">]</span>
</pre></div>
</div>
<p>And to add more, do the same thing as you did initially:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="bp">self</span><span class="o">.</span><span class="n">add_parameter</span><span class="p">(</span><span class="n">new_name</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="functions">
<h2>Functions<a class="headerlink" href="#functions" title="Permalink to this headline"></a></h2>
Expand Down
22 changes: 12 additions & 10 deletions _notebooks/Tutorial.html
Expand Up @@ -114,8 +114,8 @@
<li class="toctree-l3 current"><a class="current reference internal" href="#">QCoDeS tutorial</a><ul>
<li class="toctree-l4"><a class="reference internal" href="#table-of-contents">Table of Contents</a></li>
<li class="toctree-l4"><a class="reference internal" href="#typical-qcodes-workflow">Typical QCodes workflow</a></li>
<li class="toctree-l4"><a class="reference internal" href="#id1">Basic instrument interaction</a></li>
<li class="toctree-l4"><a class="reference internal" href="#id3">Measuring</a></li>
<li class="toctree-l4"><a class="reference internal" href="#basic-instrument-interaction">Basic instrument interaction</a></li>
<li class="toctree-l4"><a class="reference internal" href="#measuring">Measuring</a></li>
<li class="toctree-l4"><a class="reference internal" href="#loading-data">Loading data</a></li>
<li class="toctree-l4"><a class="reference internal" href="#example-multiple-2d-measurements-with-live-plotting">Example: multiple 2D measurements with live plotting</a></li>
</ul>
Expand Down Expand Up @@ -281,8 +281,8 @@ <h3>The location provider can be set globally<a class="headerlink" href="#the-lo
<p>We are now ready to play with the instruments!</p>
</div>
</div>
<div class="section" id="id1">
<h2>Basic instrument interaction<a class="headerlink" href="#id1" title="Permalink to this headline"></a></h2>
<div class="section" id="basic-instrument-interaction">
<h2>Basic instrument interaction<a class="headerlink" href="#basic-instrument-interaction" title="Permalink to this headline"></a></h2>
<p>(back to <a class="reference external" href="#toc">ToC</a>)</p>
<p>The interaction with instruments mainly consists of <code class="docutils literal"><span class="pre">setting</span></code> and
<code class="docutils literal"><span class="pre">getting</span></code> the instruments’ <code class="docutils literal"><span class="pre">parameters</span></code>. A parameter can be anything
Expand Down Expand Up @@ -368,8 +368,8 @@ <h2>Basic instrument interaction<a class="headerlink" href="#id1" title="Permali
</pre></div>
</div>
</div>
<div class="section" id="id3">
<h2>Measuring<a class="headerlink" href="#id3" title="Permalink to this headline"></a></h2>
<div class="section" id="measuring">
<h2>Measuring<a class="headerlink" href="#measuring" title="Permalink to this headline"></a></h2>
<p>(back to <a class="reference external" href="#toc">ToC</a>)</p>
<div class="section" id="d-loop-example">
<h3>1D Loop example<a class="headerlink" href="#d-loop-example" title="Permalink to this headline"></a></h3>
Expand Down Expand Up @@ -411,10 +411,12 @@ <h4>Defining the <code class="docutils literal"><span class="pre">Loop</span></c
</div>
<div class="section" id="output-of-the-loop">
<h4>Output of the loop<a class="headerlink" href="#output-of-the-loop" title="Permalink to this headline"></a></h4>
<p>A loop returns a dataset.
The representation of the dataset shows what arrays it contains and
where it is saved.
The dataset initially starts out empty (filled with NAN’s) and get’s
<div class="line-block">
<div class="line">A loop returns a dataset.</div>
<div class="line">The representation of the dataset shows what arrays it contains and</div>
</div>
<p>where it is saved.
| The dataset initially starts out empty (filled with NAN’s) and get’s
filled while the Loop get’s executed.</p>
<p>Once the measurement is done, take a look at the file in finder/explorer
(the dataset.location should give you the relative path). Note also the
Expand Down
Expand Up @@ -118,8 +118,8 @@
<li class="toctree-l3"><a class="reference internal" href="Qcodes example with TPS2012.html">QCoDeS Example with Tektronix TPS2012</a></li>
<li class="toctree-l3 current"><a class="current reference internal" href="#">QCoDeS Example with Tektronix AWG5014</a><ul>
<li class="toctree-l4"><a class="reference internal" href="#table-of-contents">Table of contents</a></li>
<li class="toctree-l4"><a class="reference internal" href="#id1">Imports and initialisation</a></li>
<li class="toctree-l4"><a class="reference internal" href="#id2">SENDING WAVEFORMS</a></li>
<li class="toctree-l4"><a class="reference internal" href="#imports-and-initialisation">Imports and initialisation</a></li>
<li class="toctree-l4"><a class="reference internal" href="#sending-waveforms">SENDING WAVEFORMS</a></li>
<li class="toctree-l4"><a class="reference internal" href="#running-the-awg-in-lazy-mode">Running the AWG in “lazy” mode</a></li>
</ul>
</li>
Expand Down Expand Up @@ -207,8 +207,8 @@ <h2>Table of contents<a class="headerlink" href="#table-of-contents" title="Perm
<li><a class="reference external" href="#lazy">Running in “lazy” mode</a></li>
</ul>
</div>
<div class="section" id="id1">
<h2>Imports and initialisation<a class="headerlink" href="#id1" title="Permalink to this headline"></a></h2>
<div class="section" id="imports-and-initialisation">
<h2>Imports and initialisation<a class="headerlink" href="#imports-and-initialisation" title="Permalink to this headline"></a></h2>
<div class="code ipython3 highlight-default"><div class="highlight"><pre><span></span><span class="o">%</span><span class="n">matplotlib</span> <span class="n">nbagg</span>

<span class="kn">import</span> <span class="nn">os</span>
Expand Down Expand Up @@ -249,8 +249,8 @@ <h2>Imports and initialisation<a class="headerlink" href="#id1" title="Permalink
</pre></div>
</div>
</div>
<div class="section" id="id2">
<h2>SENDING WAVEFORMS<a class="headerlink" href="#id2" title="Permalink to this headline"></a></h2>
<div class="section" id="sending-waveforms">
<h2>SENDING WAVEFORMS<a class="headerlink" href="#sending-waveforms" title="Permalink to this headline"></a></h2>
<p>There are two supported ways of sending waveforms to the AWG; by making
an .awg file, sending and loading that, or by sending waveforms to the
User Defined list one by one and putting them in the sequencer. The
Expand Down

0 comments on commit 4c476dd

Please sign in to comment.