comparison usb488.py @ 12:5ff9130cc953

This code isn't scope specific.
author Daniel O'Connor <darius@dons.net.au>
date Sat, 16 May 2009 23:34:05 +0930
parents f588f5bc834a
children 876d951bbcc0
comparison
equal deleted inserted replaced
11:f588f5bc834a 12:5ff9130cc953
187 self.tag += 1 187 self.tag += 1
188 if self.tag == 0: 188 if self.tag == 0:
189 self.tag += 1 189 self.tag += 1
190 190
191 def write(self, data): 191 def write(self, data):
192 """Send data (string) to the scope""" 192 """Send data (string) to the instrument"""
193 193
194 orddata = map(ord, data) 194 orddata = map(ord, data)
195 # The device needs a \n at the end, enfore this 195 # The device needs a \n at the end, enfore this
196 if orddata[-1] != '\n': 196 if orddata[-1] != '\n':
197 orddata += [ord('\n')] 197 orddata += [ord('\n')]