comparison usb488.py @ 3:62ffab79227e

Add example.py with pylab plotting example. Tested with the Tek 2024B.
author Daniel O'Connor <darius@dons.net.au>
date Wed, 13 May 2009 17:08:41 +0930
parents adaff1c4fd6b
children 6b360c30eed6
comparison
equal deleted inserted replaced
2:adaff1c4fd6b 3:62ffab79227e
249 # Trim off \n if present 249 # Trim off \n if present
250 if result[-1] == '\n': 250 if result[-1] == '\n':
251 result = result[0:-1] 251 result = result[0:-1]
252 252
253 return result 253 return result
254 def main(): 254
255 u = USB488Device()
256 print "Found device"
257
258 print "ID is.."
259 u.write("*IDN?")
260 print u.read()
261
262 if __name__ == "__main__":
263 main()
264