##// END OF EJS Templates
analog disco: Enabled filtering on acq and added analog out enable/disable functions
analog disco: Enabled filtering on acq and added analog out enable/disable functions

File last commit:

r2:8aa46b803268 default
r13:669810a4267c default
Show More
agilenttmc.py
30 lines | 732 B | text/x-python | PythonLexer
#!/usr/bin/env python
#-*- coding: utf-8 -*-
"""Common Agilent USB-TMC/SCPI traits.
"""
import time
import sys
import os
import usbtmc
__author__ = "Alexis Jeandet"
__copyright__ = "Copyright 2015, Laboratory of Plasma Physics"
__credits__ = []
__license__ = "GPLv2"
__version__ = "1.0.0"
__maintainer__ = "Alexis Jeandet"
__email__ = "alexis.jeandet@member.fsf.org"
__status__ = "Development"
class AgilentUsbTmc(usbtmc.UsbTmc):
def __init__(self,ref,serial=""):
isnt=usbtmc.findInstrument(ref,serial)
if inst=="":
raise UserWarning("Can't find instrument "+ref)
self.UsbTmc.__init__(isnt)
def abort(self):
self.write("ABORt")
def reset(self):
self.write("*RST")