@@ -118,7 +118,7 @@ def close(self):
118
118
119
119
120
120
class IMAQdx_Camera (object ):
121
- def __init__ (self , serial_number , exception_on_failed_shot = True ):
121
+ def __init__ (self , serial_number ):
122
122
global nv
123
123
import nivision as nv
124
124
_monkeypatch_imaqdispose ()
@@ -139,7 +139,7 @@ def __init__(self, serial_number, exception_on_failed_shot=True):
139
139
)
140
140
# Keep an img attribute so we don't have to create it every time
141
141
self .img = nv .imaqCreateImage (nv .IMAQ_IMAGE_U16 )
142
- self .exception_on_failed_shot = exception_on_failed_shot
142
+ self .exception_on_failed_shot = True
143
143
self ._abort_acquisition = False
144
144
145
145
def set_attributes (self , attr_dict ):
@@ -287,8 +287,7 @@ def get_camera(self):
287
287
if self .mock :
288
288
return MockCamera ()
289
289
else :
290
- return self .interface_class (self .serial_number ,
291
- exception_on_failed_shot = self .exception_on_failed_shot )
290
+ return self .interface_class (self .serial_number )
292
291
293
292
def set_attributes_smart (self , attributes ):
294
293
"""Call self.camera.set_attributes() to set the given attributes, only setting
@@ -396,6 +395,7 @@ def transition_to_buffered(self, device_name, h5_filepath, initial_values, fresh
396
395
self .stop_acquisition_timeout = properties ['stop_acquisition_timeout' ]
397
396
self .exception_on_failed_shot = properties ['exception_on_failed_shot' ]
398
397
saved_attr_level = properties ['saved_attribute_visibility_level' ]
398
+ self .camera .exception_on_failed_shot = self .exception_on_failed_shot
399
399
# Only reprogram attributes that differ from those last programmed in, or all of
400
400
# them if a fresh reprogramming was requested:
401
401
if fresh :
0 commit comments