Controlling the lab instruments via a Python script.
To control the lab instruments via Python scripts you need to be on a specific Windows server that you can log onto remotely using VMWare, just like you do to log onto a remote Linux machine to run Cadence, see oppstsettcadencehjemmefra.html . For the lab Windows machines you will need to use the web-browser based version of VMWare. Once you followed the steps to open VMware, choose Lab Net Workstation (i.e. not ifi Worksation like for running Cadence) to open a remote Windows session on the correct server.
- Make a folder where you want to keep your code. Make the folder in your home directory (M:), eg. \uio\hume.uio.no\username.
- Open the command prompt (search cmd and it'll be the first thing to pop up) and navigate to your folder by writing cd /folder_name
- Open the program Notepad++ (or any other text editor), make a new file (e.g. helloWorld.py) and copy in the code.
- Save the file in your folder
- Run the program by typing: python helloWorld.py in the cmd and you should see the printed text appear.
(* In https://github.com/paalgh/IN5180_LabSetup have a look at file README.md to get started.*)