forked from M-Labs/artiq
examples: fix after introduction of RangeScan
This commit is contained in:
parent
58da76a169
commit
7ec14f26c2
@ -29,7 +29,8 @@ Release notes
|
||||
* The "collision" and "busy" RTIO errors are reported through the log instead of
|
||||
raising exceptions.
|
||||
* Results are still saved when ``analyze`` raises an exception.
|
||||
* LinearScan and RandomScan have been consolidated into RangeScan
|
||||
* LinearScan and RandomScan have been consolidated into RangeScan.
|
||||
|
||||
|
||||
2.2
|
||||
---
|
||||
|
@ -6,7 +6,7 @@ from artiq.experiment import *
|
||||
class SubComponent1(HasEnvironment):
|
||||
def build(self):
|
||||
self.setattr_argument("sc1_scan",
|
||||
Scannable(default=[NoScan(3250), RandomScan(10, 20, 6)],
|
||||
Scannable(default=[NoScan(3250), RangeScan(10, 20, 6, randomize=True)],
|
||||
unit="kHz"),
|
||||
"Flux capacitor")
|
||||
self.setattr_argument("sc1_enum", EnumerationValue(["1", "2", "3"]),
|
||||
@ -24,7 +24,7 @@ class SubComponent2(HasEnvironment):
|
||||
self.setattr_argument("sc2_boolean", BooleanValue(False),
|
||||
"Transporter")
|
||||
self.setattr_argument("sc2_scan", Scannable(
|
||||
default=LinearScan(200, 300, 49)),
|
||||
default=RangeScan(200, 300, 49)),
|
||||
"Transporter")
|
||||
self.setattr_argument("sc2_enum", EnumerationValue(["3", "4", "5"]),
|
||||
"Transporter")
|
||||
|
@ -22,7 +22,7 @@ class FloppingF(EnvExperiment):
|
||||
|
||||
def build(self):
|
||||
self.setattr_argument("frequency_scan", Scannable(
|
||||
default=LinearScan(1000, 2000, 100)))
|
||||
default=RangeScan(1000, 2000, 100)))
|
||||
|
||||
self.setattr_argument("F0", NumberValue(1500, min=1000, max=2000))
|
||||
self.setattr_argument("noise_amplitude", NumberValue(
|
||||
|
@ -3,9 +3,9 @@ from artiq.experiment import *
|
||||
|
||||
class MultiScan(EnvExperiment):
|
||||
def build(self):
|
||||
self.setattr_argument("a", Scannable(default=LinearScan(0, 10, 4)))
|
||||
self.setattr_argument("b", Scannable(default=LinearScan(0, 10, 4)))
|
||||
self.setattr_argument("c", Scannable(default=LinearScan(0, 10, 4)))
|
||||
self.setattr_argument("a", Scannable(default=RangeScan(0, 10, 4)))
|
||||
self.setattr_argument("b", Scannable(default=RangeScan(0, 10, 4)))
|
||||
self.setattr_argument("c", Scannable(default=RangeScan(0, 10, 4)))
|
||||
|
||||
def run(self):
|
||||
msm = MultiScanManager(
|
||||
|
Loading…
Reference in New Issue
Block a user