Jupyter Notebooks on Github: https://github.com/mfhepp/measurement-in-python
Most of our test and measurement equipment can be controlled from script languages and software tools via USB on the basis of SCPI (see also here) commands and the VISA interface, which is an I/O API for the test and measurement domain. On this page, we give an overview of resources.
As a first example, we are going to discharge a battery by a connecting a small light bulb or a sufficiently rated resistor and measure the decreasing cell voltage over time. In this example, we only have to control a single measurement device, in this case a digital voltmeter.
Task: Measure the discharge curve for a Duracell QU1500 AA battery at 200 and 500 mA. To do so, connect the Rohde & Schwarz HMC8012 digital multimeter and a suitable resistor parallel to the battery. Then, write a Python script to measure the cell voltage over time. You do not need to measure the discharge current, as it is directly related to the cell voltage as I = U/R at any moment in time. Plot the result with Matplotlib in an Jupyter notebook. Finally, compare it with the datasheet.
Warning:
Block Diagram and Setup: To be added
Jupyter Notebook: https://nbviewer.jupyter.org/github/mfhepp/measurement-in-python/blob/master/exercise-1-battery.ipynb
In diodes, like the popular 1N4001, the flow of current depends on the voltage applied. Each diode has a characteristic relationship between two, called the current-voltage curve. By combining a computer-controlled voltage and a both a voltmeter and an amperemeter, we can trace this curve from a Python script.
Task: Use the setup from here and connect it to the Rohde & Schwarz HMC 8042 programmable power supply and the Rohde & Schwarz HMC8012 digital multimeter. Then, write a Python script to increase the voltage of the power supply in small steps and measure the flow of current. Plot the result with Matplotlib in an Jupyter notebook. Compare it with the datasheet.
Warning:
Block Diagram and Setup: To be added
Jupyter Notebook: https://nbviewer.jupyter.org/github/mfhepp/measurement-in-python/blob/master/exercise-2-diode.ipynb
Links:
* http://www.leifiphysik.de/elektronik/halbleiterdiode/versuche/aufnahme-der-diodenkennlinie