Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
1,866 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#Thorlabs Temperature Controller example | ||
|
||
import instruments as ik | ||
import quantities | ||
tc = ik.thorlabs.TC200.open_serial('/dev/tc200', 115200) | ||
|
||
|
||
tc.temperature = 70*quantities.degF | ||
print("The current temperature is: ", tc.temperature) | ||
|
||
tc.mode = tc.Mode.normal | ||
print("The current mode is: ", tc.mode) | ||
|
||
tc.enable = True | ||
print("The current enabled state is: ", tc.enable) | ||
|
||
tc.p = 200 | ||
print("The current p gain is: ", tc.p) | ||
|
||
tc.i = 2 | ||
print("The current i gain is: ", tc.i) | ||
|
||
tc.d = 2 | ||
print("The current d gain is: ", tc.d) | ||
|
||
tc.degrees = quantities.degF | ||
print("The current degrees settings is: ", tc.degrees) | ||
|
||
tc.sensor = tc.Sensor.ptc100 | ||
print("The current sensor setting is: ", tc.sensor) | ||
|
||
tc.beta = 3900 | ||
print("The current beta settings is: ", tc.beta) | ||
|
||
tc.max_temperature = 150*quantities.degC | ||
print("The current max temperature setting is: ", tc.max_temperature) | ||
|
||
tc.max_power = 1000*quantities.mW | ||
print("The current max power setting is: ", tc.max_power) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#Thorlabs Temperature Controller example | ||
|
||
import instruments as ik | ||
import quantities | ||
tm = ik.toptica.TopMode.open_serial('/dev/ttyACM0', 115200) | ||
|
||
|
||
print("The current emission state is: ", tm.enable) | ||
print("The current lock state is: ", tm.locked) | ||
print("The current interlock state is: ", tm.interlock) | ||
print("The current fpga state is: ", tm.fpga_status) | ||
print("The current temperature state is: ", tm.temperature_status) | ||
print("The current current state is: ", tm.current_status) | ||
|
||
print("The laser1's serial number is: ", tm.laser1.serial_number) | ||
print("The laser1's model number is: ", tm.laser1.model) | ||
print("The laser1's wavelength is: ", tm.laser1.wavelength) | ||
print("The laser1's production date is: ", tm.laser1.production_date) | ||
print("The laser1's enable state is: ", tm.laser1.enable) | ||
print("The laser1's up time is: ", tm.laser1.on_time) | ||
print("The laser1's charm state is: ", tm.laser1.charm_status) | ||
print("The laser1's temperature controller state is: ", tm.laser1.temperature_control_status) | ||
print("The laser1's current controller state is: ", tm.laser1.current_control_status) | ||
print("The laser1's tec state is: ", tm.laser1.tec_status) | ||
print("The laser1's intensity is: ", tm.laser1.intensity) | ||
print("The laser1's mode hop state is: ", tm.laser1.mode_hop) | ||
print("The laser1's lock start time is: ", tm.laser1.lock_start) | ||
print("The laser1's first mode hop time is: ", tm.laser1.first_mode_hop_time) | ||
print("The laser1's latest mode hop time is: ", tm.laser1.latest_mode_hop_time) | ||
print("The laser1's correction status is: ", tm.laser1.correction_status) | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.