These codes shows how to generate a signal and upload them to the Arbitrary Wave Generator.
The files included in this repository are:
- interference.ipynb (Notebook): It shows how to generate a sinusoid signal and a square signal with different phases and frequencies for two awg channels.
- manchester_encoding.ipynb (Notebook): It shows how to generate a manchester encoded signal.
- T3AWG3252.py (Python code): contains the class T3AWG3252 for controlling the Teledyne arbitrary wave generator
- requirements.txt: contains the required python modules.
The steps for the installation in Windows are:
- Download your preferred Python version and install it for all the users.
- Open a console terminal and check the python installed version by typing in the terminal
python --version
- Install the virtual environment manager using this python.
python -m pip install virtualenv
- Go to your project folder and create a virtual environment.
python -m virtualenv .env
This command will create a virtual enviroment in the folder .env
- Activate the virtual enviroment.
.\.env\Scripts\activate
- You can later deactivate your enviroment by using.
deactivate
- Install required python modules
python -m pip install -r requirements.txt
- You can install more modules using the following command.
python -m pip install <module_name>
- Install jupyter lab
python -m pip install jupyterlab
- Launch jupyter lab server
python -m jupyter lab --port <port>
- To save new installed modules you can use the following command.
python -m pip freeze > requirements.txt
- Launch the browser (if it was not launched) and start having fun coding!