Skip to content

Commit 4752f28

Browse files
committed
Adding default information
1 parent 0cf6405 commit 4752f28

File tree

4 files changed

+45
-0
lines changed

4 files changed

+45
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ test/__pycache__/*
44
.DS_Store/
55
*.pyc
66
.orig
7+
*.swp

defaults.txt

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
These values are for a 1064nm microJewel laser, serial number 8130-A
2+
3+
Rep rate
4+
default: 5.00
5+
min: 0.100
6+
max: 50.000
7+
8+
Pulse Width
9+
default: 0.00014000
10+
min: 0.00000100
11+
max: 0.00024000
12+
13+
Pulse Period
14+
default: 0.20000000
15+
min: 0.02000000
16+
max: 10.00000000
17+
18+
Default pulse mode: 0
19+
20+
Diode current:
21+
default: 110.00
22+
min: 1.000
23+
max: 130.000
24+
Note: diode current cannot be changed anymore
25+
26+
Resonator Temp
27+
min: -0.401
28+
max: 50.000
29+
30+
FET Temp:
31+
nominal?:34.082
32+
max: 125.000
33+
34+
Burst cout:
35+
default: 31

ujlaser/.lasercontrol.py.swp

52 KB
Binary file not shown.

ujlaser/lasercontrol.py

+9
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,15 @@ def set_rep_rate(self, rate):
766766
return True
767767
raise LaserCommandError(Laser.get_error_code_description(response))
768768

769+
def get_repetition_rate(self):
770+
reponse = self._send_command("RR?")
771+
if not response:
772+
return
773+
if response[0] == b"?":
774+
raise LaserCommandError(Laser.get_error_code_description(response))
775+
776+
return int(response)
777+
769778
def get_repetition_rate_range(self):
770779
"""Gets the minimum and maximum repitition rate for firing.
771780

0 commit comments

Comments
 (0)