labscript-suite / labscript-devices

A modular and extensible plugin architecture to control experiment hardware using the 𝘭𝘒𝘣𝘴𝘀𝘳π˜ͺ𝘱𝘡 𝘴𝘢π˜ͺ𝘡𝘦.
http://labscriptsuite.org
Other
5 stars 58 forks source link

NI PCI 6733 Digital outputs do not work #10

Closed philipstarkey closed 8 years ago

philipstarkey commented 9 years ago

Original report (archived issue) by Philip Starkey (Bitbucket: pstarkey, GitHub: philipstarkey).


When you try and use a Digital output for teh NI PCI 6733 during a buffered sequence, you get the following exception raised during transition_to_buffered

#!python

Exception in worker - Mon Aug 10, 14:41:05 :
Traceback (most recent call last):
  File "C:\labscript\labscript_devices\NI_PCI_6733.py", line 185, in transition_to_buffered
    do_write_data = numpy.zeros((do_bitfield.shape[0],self.num['DO']),dtype=numpy.uint8)
AttributeError: 'NiPCI6733Worker' object has no attribute 'num'
philipstarkey commented 8 years ago

Original comment by Philip Starkey (Bitbucket: pstarkey, GitHub: philipstarkey).


Fixed in changeset: fffc99652f810119bcdbf639a7a81cd3e643e64b and released as v2.0.1