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")