Skip to content

Commit bf090ee

Browse files
Last changes to Shutter PR.
1 parent bedd524 commit bf090ee

File tree

3 files changed

+2
-307
lines changed

3 files changed

+2
-307
lines changed

src/navigate/config/configuration_database.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@
160160
shutter_hardware_widgets = {
161161
"type": ["Device Type", "Combobox", "string", shutter_device_types, None],
162162
"channel": ["NI Channel", "Input", "string", None, "Example: PXI6259/port0/line0"],
163-
"port": ["COM Port", "Input", "string", None, "e.g., COM3"],
164-
"axis": ["Shutter Axis", "Input", "string", None, "e.g., A, B, C"],
163+
"port": ["COM Port", "Input", "string", None, "Example: COM3"],
164+
"axis": ["Shutter Axis", "Input", "string", None, "Example: 1"],
165165
"min": ["Minimum Voltage", "Spinbox", "float", None, "Example: 0"],
166166
"max": ["Maximum Voltage", "Spinbox", "float", None, "Example: 5"],
167167
"frame_config": {"ref": "hardware"},

src/navigate/model/devices/APIs/asi/asi_tiger_controller.py

Lines changed: 0 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -939,51 +939,6 @@ def move_dichroic(self, dichroic_id, dichroic_position=0):
939939
self.send_filter_wheel_command(f"MOVE {dichroic_id}={dichroic_position}")
940940
self.read_response()
941941

942-
def square_wave(self, on_time, delay_time):
943-
"""Square wave modulation.
944-
945-
For testing only.
946-
947-
Parameters
948-
----------
949-
on_time : int
950-
On time in quarter milliseconds
951-
delay_time : int
952-
Delay time in quarter milliseconds
953-
"""
954-
955-
commands = ['CCA X=0',
956-
957-
'M E=2',
958-
'CCA Y=15',
959-
f'CCA Z={delay_time}',
960-
'CCB X=68 Y=192 Z=0',
961-
962-
'M E=3',
963-
'CCA Y=5',
964-
'CCB X=1 Y=66',
965-
966-
'M E=4',
967-
'CCA Y=14',
968-
f'CCA Z={on_time}',
969-
'CCB X=3 Y=192 Z=0',
970-
971-
'M E=33',
972-
'CCA Z=1',
973-
'M E=34',
974-
'CCA Z=2',
975-
'M E=35',
976-
'CCA Z=3',
977-
'M E=36',
978-
'CCA Z=4',
979-
980-
'M E=1',
981-
'CCA Z=1']
982-
for command in commands:
983-
# Send data
984-
self.send_command(f'{command}\r')
985-
self.read_response()
986-
987942
def logic_card_on(self, axis : str):
988943
"""Turn on the logic card
989944
@@ -1011,48 +966,4 @@ def logic_card_off(self, axis : str):
1011966
self.send_command(f'6 M E = {axis}\r')
1012967
self.read_response()
1013968
self.send_command(f'6 CCA Z=0\r')
1014-
self.read_response()
1015-
1016-
def SA_waveform(self, axis:str, waveform=0, amplitude=1000, offset=500):
1017-
"""Programs the analog waveforms using SAA, SAO, and SAP
1018-
Default waveform is a sawtooth waveform with an amplitude of 1V with an offset of 0.5V
1019-
1020-
Parameters
1021-
----------
1022-
axis: str
1023-
Laser axis
1024-
waveform:
1025-
Type of waveform pattern according to https://asiimaging.com/docs/commands/sap
1026-
amplitude:
1027-
amplitude of the waveform
1028-
offset:
1029-
sets the center position of the waveform
1030-
"""
1031-
1032-
"Verify if this is for synchronous or asynchronous"
1033-
self.send_command(f"SAP {axis}={waveform}")
1034-
self.read_response()
1035-
self.send_command(f"SAA {axis}={amplitude}")
1036-
self.read_response()
1037-
self.send_command(f"SAO {axis}={offset}")
1038-
self.read_response()
1039-
1040-
def SAM(self, axis: str, mode: int):
1041-
"""Sets the single-axis mode according to the integer code.
1042-
1043-
0: stops waveforms if they are running
1044-
1: starts generating the waveform pattern
1045-
2: waveform only runs for one cycle, then waits for another trigger
1046-
3: starts generating the waveform pattern, restarts the other waveform on the same card
1047-
4: starts generating the waveform, free running after the trigger
1048-
1049-
Parameters
1050-
----------
1051-
axis: str
1052-
Laser axis
1053-
mode:
1054-
Integer code
1055-
"""
1056-
1057-
self.send_command(f"SAM {axis}={mode}")
1058969
self.read_response()

src/navigate/model/devices/laser/asi.py

Lines changed: 0 additions & 216 deletions
This file was deleted.

0 commit comments

Comments
 (0)