https://github.com/spaceteam/thvisa
object-oriented easyness to access dsox1102g and spd3303c in linux/wdos
https://github.com/spaceteam/thvisa
Last synced: 8 months ago
JSON representation
object-oriented easyness to access dsox1102g and spd3303c in linux/wdos
- Host: GitHub
- URL: https://github.com/spaceteam/thvisa
- Owner: SpaceTeam
- License: mit
- Created: 2019-11-17T08:00:07.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-04-26T09:10:25.000Z (about 4 years ago)
- Last Synced: 2025-10-08T07:56:02.602Z (8 months ago)
- Language: Python
- Size: 1.67 MB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# thvisa #
object-oriented easyness for pythonic access to
* Keysight oscilloscope DSOX1102G (1000x series in general)
* Keysight/Agilent Fieldfox N991xA VNA
* Siglent rspd3303c/spd3303c 2.5CH lab PSU
via the SCPI standard. Or to be more precise, the specific implementations, utilizing the pyvisa framwork.
## examples ##
see "main" sections of InfiniiVision_thisa.py and spd3303c_thvisa.py
## install ##
* first follow linux/windows specific section
* then:
* python3 -m pip install wheel pyvisa pyvisa-py pyusb python-usbtmc numpy matplotlib
### linux specific ##
(can try setup.sh after chmod+X setup.sh, adapt udev rules afterwards)
#### linux manual ####
update system and install python3 with pip, libatlas to avoid numpy error
* sudo apt update
* sudo apt dist-upgrade
* sudo apt install python3-pip
* sudo apt-get install libatlas-base-dev
* then setup git and udev
#### git setup ####
* users don't need a git client, download the zip and ignore this section from hereon
* suggested git client: git-gui
* sudo apt install git git-gui
* git config --global user.name $gusername
* git config --global user.email $gemail
* run gitgui via: "git gui"
* note: gitgui can't be run via ssh since it would need a gui, use a vnc if desired (or plain cmd git)
#### setup udev-rules ####
An example of how to change _/etc/udev/rules.d/usb.rules_ to accomodate not being sudo for accessing pyvisa/usbtmc devices is in usb.rules.
(The group "plugdev" should be assigned to each user, check with command "groups" to be sure if your current user is)
* append or make the file _/etc/udev/rules.d/usb.rules_ according to usb.rules provided
* either _udevadm control --reload-rules_ or _udevcontrol reload_rules_ dependent on kernel version
further info:
* udev rules examples: https://pypi.org/project/udmx-pyusb/
* comprehensive udev manual : http://www.reactivated.net/writing_udev_rules.html
### windows specific ###
* for anaconda management of python3, substitute "python3 -m pip install .." with "conda install .."
#### git setup ####
* users don't need a git client, download the zip and ignore this section from here on
* use any git client you want