Fixes after MAX IV experiment
This commit is contained in:
1 parent
91a0960303
commit
babb1a5c8d
151 files changed
+4395
-1477
No files matched your search
@@ -702,3 +702,27 @@ TEST_CASE("DiffractionExperiment_OmegaStep","[DiffractionExperiment]") {
|
||||
REQUIRE(x.GetOmegaStep());
|
||||
REQUIRE(!msg.goniometer.empty());
|
||||
}
|
||||
|
||||
TEST_CASE("DiffractionExperiment_ConversionOnFPGA","[DiffractionExperiment]") {
|
||||
DiffractionExperiment x;
|
||||
x.Mode(DetectorMode::Conversion);
|
||||
REQUIRE(x.IsConversionOnFPGA()); // conversion on FPGA must be default true!
|
||||
|
||||
x.Mode(DetectorMode::Raw);
|
||||
REQUIRE(!x.IsConversionOnFPGA()); // conversion on FPGA off for raw mode
|
||||
|
||||
x.Mode(DetectorMode::PedestalG0);
|
||||
REQUIRE(!x.IsConversionOnFPGA()); // conversion on FPGA off for pedestal modes
|
||||
|
||||
x.Mode(DetectorMode::PedestalG1);
|
||||
REQUIRE(!x.IsConversionOnFPGA()); // conversion on FPGA off for pedestal modes
|
||||
|
||||
x.Mode(DetectorMode::PedestalG2);
|
||||
REQUIRE(!x.IsConversionOnFPGA()); // conversion on FPGA off for pedestal modes
|
||||
|
||||
x.Mode(DetectorMode::Conversion).ConversionOnFPGA(false);
|
||||
REQUIRE(!x.IsConversionOnFPGA()); // conversion on FPGA turned explicitly off
|
||||
|
||||
x.Mode(DetectorMode::Conversion).ConversionOnFPGA(true);
|
||||
REQUIRE(x.IsConversionOnFPGA()); // conversion on FPGA back on
|
||||
}
|
||||
Reference in new issue
Block a user