labscript-suite-temp / labscript_devices

Module containing labscript suite hardware compatibility, separate from the main programs. Device compatibility is implemented with a plugin architecture, for modularity and extensibility. Each file in this module contains a labscript device class, a BLACS tab class, a BLACS worker class and a runviewer parser class for a particular device. These implement functionality for the device which the programs in question call on when they encounter each device in user labscript code, hdf5 files, or connection tables.
0 stars 0 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: pstarkey).


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: pstarkey).


Fixed in changeset: 8334eeb09fa9a8dc28b496670be286735b21a599 and released as v2.0.1