Skip to content
Snippets Groups Projects
Commit 9db51b98 authored by Michael DM Dryden's avatar Michael DM Dryden
Browse files

Fixes photodiode bias problem #5.

parent c6924da8
Branches
Tags
No related merge requests found
......@@ -266,7 +266,12 @@ class PDExp(Chronoamp):
self.commands += "R"
self.commands[2] += "1"
self.commands[2] += " "
self.commands[2] += str(int(65536-self.parameters['voltage']*(65536./3000)))
if self.parameters['voltage'] == 0: # Special case where V=0
self.commands[2] += "65535"
else:
self.commands[2] += str(int(
65535-(self.parameters['voltage']*(65536./3000))))
self.commands[2] += " "
self.commands[2] += str(self.parameters['time'])
self.commands[2] += " "
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment