background image

  

TEI0016 - Jupyter Demo

Copyright ©  2020 Trenz Electronic GmbH

6 of 16

http://www.trenz-electronic.de

4.2 Installation of Anaconda respectively 

Jupyter

The simplest way to execute the demos in Jupyter is accomplished through the installation of Anaconda.
This will install more than is needed but nearly all requirements in one step.

The Anaconda website provides detailed instructions on how to install the application, just follow this 

link

.

If the installer offers you the installation of optional applications, just skip those, they are 
not needed to run the demos or edit their code.

4.3 Installation of Pyserial

At least with Anaconda installation on Windows, 

pyserial

 (python serial port support library) is not 

included and has to be installed. This can be done from the 

Anaconda command prompt

. To open the 

Anaconda command prompt, just press the windows key, type Anaconda prompt and open it. Enter

conda install -c anaconda pyserial

into the command prompt an press enter. This starts the search for software dependencies of pyserial, 
you are asked to confirm the 

installation, to 

proceed press Y. 

The console shows a message when pyserial is installed and thereafter the console is no longer needed 
and can be closed.

4.4 Making the demos accessible for Jupyter

The demo is available through a link in the parent page. The download is a folder, containing all the necessary
files  and  documents.  The 

download  folder

 is  compressed  into  a 

zip  archive

 and  need  to  be  extracted,  to  be 

accessible for 
Jupyter.
Jupyter has access to the user folder, so a convenient way is to copy the 

extracted

 demo folder 

(TEI001X-0x-08-C8A_Jupyter-ADC-demo_Vx.y_quartusxy.z_...) into your users folder, for example:

C:\Users\Username\

download-folder

4.5 

Starting Jupyter

To open Jupyter, press the windows key and 

type Jupyter, 

this presents "Jupyter Notebook (AnacondaX)" to you,

from which one can start Jupyter.

Jupyter is based on the server client structure, the server is executed in the background, and the client is a webpage 
inside your default browser.

So opening it starts the server, which opens a console displaying status messages of the server. 
The console must be open all the time, you want Jupyter to run. You can minimize it.

Summary of Contents for Jupyter Demo

Page 1: ...TEI0016 Jupyter Demo Revision Exported on 03 05 2020...

Page 2: ...al 6 4 4 Making the demos accessible for Jupyter 6 4 5 Starting Jupyter 6 4 6 Opening a demo 7 4 7 Alter the comport to yours 8 4 8 Running the demo 9 4 9 Annotations 9 5 TEI0016 Demo ADC data acquisi...

Page 3: ...ht 2020 Trenz Electronic GmbH 3 of 16 http www trenz electronic de 2 Documentation TEI0016 Installation guide for Jupyter TEI0016 Demo ADC data acquisition and Fourier transformation TEI0016 Communica...

Page 4: ...ght 2020 Trenz Electronic GmbH 4 of 16 http www trenz electronic de 3 Download TEI0016 Jupyter Demo 2 Variants available TEI0016 0x 08 C8A assembled with ADAQ7988BCCZ 500kS s TEI0016 0x 08 C8B assembl...

Page 5: ...ware and running the demos in general For the ease of accessibility and programmability the language Python since version 3 5 has been chosen The project Jupyter provides an excellent and open source...

Page 6: ...ftware dependencies of pyserial you are asked to confirm the installation to proceed press Y The console shows a message when pyserial is installed and thereafter the console is no longer needed and c...

Page 7: ...g the notebook file Left clicking on a folder opens it Going back or a level up is accomplished by clicking the back button of your browser The path to this demo or notebook is Jupyter tab Home folder...

Page 8: ...unication port This port has been assigned a number during the driver installation In our case it is COM5 In dependency to the code of a demo there are two variants Variant 1 At the beginning of the N...

Page 9: ...stopped by the button with the black rectangular reloaded through the circular arrow and lastly reloaded and rerun by the two arrowed button The notebook can be closed either by closing the tab or via...

Page 10: ...acquisition and Fourier transformation This demo provides an example on how to use the communication interface provided in the modules firmware to setup the pre amplification and trigger an ADC measu...

Page 11: ...TEI0016 Jupyter Demo Copyright 2020 Trenz Electronic GmbH 11 of 16 http www trenz electronic de...

Page 12: ...demo scans for existing comports in its initialisation phase So the module needs to be connected to the computer prior to running the demo When this demo runs it displays a graphical user interface s...

Page 13: ...n of 1 2 4 8 For TEI0023 Send the command 1 2 3 4 5 6 or 7 for the ADC pre amplification of 0 25 0 5 1 2 4 8 and 16 Send the command t to trigger the consecutive measurement The module always measures...

Page 14: ...0 to 1 LSB 0x7fff 32767 Mid scale is 0x8000 32768 Positive 1 LSB 0x8001 32769 to full scale 0xffff 65536 The layout of the ADC circuit is further described in the Analog Devices circuit note CN 0393...

Page 15: ...es the pre amplifier 1 Sets the pre amplification of the ADC s input to 0 25 2 Sets the pre amplification of the ADC s input to 0 5 3 Sets the pre amplification of the ADC s input to 1 4 Sets the pre...

Page 16: ...EI0016 0x 08 C8A with ADC ADAQ7988 0 5 MSps returns 2 TEI0016 0x 08 C8B with ADC ADAQ7980 1 MSps returns 3 TEI0023A with ADC AD4003 2 MSps returns 4 F The module activates a square wave signal frequen...

Reviews: