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
20 changed files
with
2,391 additions
and
806 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
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.