From a34ee6a5beaf2bcc5c3a260b8915ea69e8aca48a Mon Sep 17 00:00:00 2001 From: Alexander Nozik Date: Wed, 18 Sep 2024 10:07:15 +0300 Subject: [PATCH] Add connection on measurement start to PKT8 --- numass-control/build.gradle | 2 +- .../src/main/kotlin/inr/numass/control/cryotemp/PKT8Device.kt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/numass-control/build.gradle b/numass-control/build.gradle index 3275bc04..cd919e55 100644 --- a/numass-control/build.gradle +++ b/numass-control/build.gradle @@ -4,7 +4,7 @@ plugins { javafx { modules = ["javafx.controls", "javafx.web"] - version = "11" + version = "16" } diff --git a/numass-control/cryotemp/src/main/kotlin/inr/numass/control/cryotemp/PKT8Device.kt b/numass-control/cryotemp/src/main/kotlin/inr/numass/control/cryotemp/PKT8Device.kt index cfcfb9a9..f7c8c8d1 100644 --- a/numass-control/cryotemp/src/main/kotlin/inr/numass/control/cryotemp/PKT8Device.kt +++ b/numass-control/cryotemp/src/main/kotlin/inr/numass/control/cryotemp/PKT8Device.kt @@ -251,6 +251,10 @@ class PKT8Device(context: Context, meta: Meta) : PortSensor(context, meta) { // logger.warn("Trying to start measurement which is already started") // } + if(!connected.booleanValue){ + logger.info("Not connected, connecting...") + connected.setAndWait(true) + } logger.info("Starting measurement")