Skip to content

Commit 6b33558

Browse files
author
spielman
committed
Added pixel_size and magnification attributes to imaqdxcamera
1 parent 86e8c39 commit 6b33558

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

labscript_devices/IMAQdxCamera/labscript_devices.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ class IMAQdxCamera(TriggerableDevice):
3434
"stop_acquisition_timeout",
3535
"exception_on_failed_shot",
3636
"saved_attribute_visibility_level"
37+
"pixel_size",
38+
"magnification",
3739
],
3840
}
3941
)
@@ -44,6 +46,8 @@ def __init__(
4446
connection,
4547
serial_number,
4648
orientation=None,
49+
pixel_size=[1.0,1.0],
50+
magnification=1.0,
4751
trigger_edge_type='rising',
4852
trigger_duration=None,
4953
minimum_recovery_time=0.0,
@@ -76,6 +80,14 @@ def __init__(
7680
to determine the location in the shot file where the images will be
7781
saved. If not given, the device name will be used instead.
7882
83+
pixel_size ([float,float], optional), default: `[1.0, 1.0]`
84+
The x and y size of the pixels in micrometers. This can be used
85+
in setting the scale in the blacs image display as well as
86+
extracted in lyse for analysis
87+
88+
magnification (float, optional), default: `1.0`
89+
Imaging system magnification.
90+
7991
trigger_edge_type (str), default: `'rising'`
8092
The direction of the desired edges to be generated on the parent
8193
devices's digital output used for triggering. Must be 'rising' or
@@ -145,6 +157,8 @@ def __init__(
145157
self.minimum_recovery_time = minimum_recovery_time
146158
self.trigger_duration = trigger_duration
147159
self.orientation = orientation
160+
self.pixel_size = pixel_size
161+
self.magnification = magnification
148162
if isinstance(serial_number, (str, bytes)):
149163
serial_number = int(serial_number, 16)
150164
self.serial_number = serial_number

0 commit comments

Comments
 (0)