Skip to content

Instantly share code, notes, and snippets.

@inderpreet
Created April 28, 2019 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inderpreet/bf7e7c5338636ec8477400d7fc1bc389 to your computer and use it in GitHub Desktop.
Save inderpreet/bf7e7c5338636ec8477400d7fc1bc389 to your computer and use it in GitHub Desktop.
A script to display text on the Keysight PSU
#!/usr/bin/env python
import visa
rm = visa.ResourceManager()
rm.list_resources()
inst = rm.open_resource('TCPIP0::192.168.5.185::5025::SOCKET')
# print(inst.query("*IDN?"))
inst.write('*RST?')
inst.write('DISP:TEXT "Inderpreet is Awesome!"')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment