A Handyscope HS3 is used in all examples, but you can use the Python examples also with our other instruments.
For a list of supported instruments see the Instrument ID's list.
If you want to use e.g. a Handyscope HS4, you need to change the line which creates the TPdevice.
Replace 'HS3' by the ID for your instrument. An example is shown below:
TPdevice = TiePie.Instruments.Instrument( 'HS3' ); # Handyscope HS3 |
To use a Handyscope HS4 replace the above by:
TPdevice = TiePie.Instruments.Instrument( 'HS4' ); # Handyscope HS4 |
A list with all instrument ID's can be found at the bottom of this page.
Currently there are three examples available:
-
scope_example.py
Performs a measurement at 100kHz with a record of 1000 samples. Sensitivity is 8 Volt, Coupling is DC.
-
awg_example.py
Enables the AWG and generates a 5 kHz sinewave for 30 seconds. Amplitude is 1 Volt, DC offset is 2 Volt, symmetry is 50%.
-
scope_awg_example.py
Enables the AWG and performs a measurement.