2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-18 16:06:30 +08:00

devices/novatech409b: remove unwanted calls to set_simultaneous_update

This commit is contained in:
Sebastien Bourdeauducq 2015-10-12 16:15:04 +08:00
parent b5cc680fdb
commit 36c3f022aa

View File

@ -143,14 +143,11 @@ class Novatech409B:
def set_freq(self, ch_no, freq):
"""Set frequency of one channel."""
self.set_simultaneous_update(False)
# Novatech expects MHz
self._ser_send("F{:d} {:f}".format(ch_no, freq/1e6))
def set_phase(self, ch_no, phase):
"""Set phase of one channel."""
# do this immediately, disable SimultaneousUpdate mode
self.set_simultaneous_update(False)
# phase word is required by device
# N is an integer from 0 to 16383. Phase is set to
# N*360/16384 deg; in ARTIQ represent phase in cycles [0, 1]
@ -168,7 +165,6 @@ class Novatech409B:
s = "Amplitude out of range {v}".format(v=volts)
raise ValueError(s)
self.set_simultaneous_update(False)
s = "V{:d} {:d}".format(ch_no, dac_value)
self._ser_send(s)