31 lines
778 B
Markdown
31 lines
778 B
Markdown
# About
|
|
|
|
This is a python code to connect RIGOL DS40024 Oscilliscope via Ethernet and do a FFT. The control is done by SCPI command.
|
|
|
|
The list of command can be found in https://beyondmeasure.rigoltech.com/acton/attachment/1579/f-06f3/1/-/-/-/-/MSO%26DS4000_programming.pdf
|
|
|
|
# Required Libraries
|
|
|
|
- pyvisa-py
|
|
- zeroconf
|
|
|
|
# find the device address
|
|
|
|
```python
|
|
import pyvisa as visa
|
|
|
|
# Initialize visa resource manager
|
|
rm = visa.ResourceManager('@py')
|
|
|
|
# print(rm.list_resources_info() )
|
|
print( rm.list_resources() )
|
|
```
|
|
# test.py
|
|
|
|
This script is a test script to demostrate some controls.
|
|
|
|
# FFTProbe.py
|
|
|
|
The python script FFTProbe.py is an gui for get the waveform and do FFT.
|
|
|
|
![FFT example](https://fsunuc.physics.fsu.edu/git/rtang/RIGOLwaveform/raw/branch/master/Figure_1.png) |