Lightweight SCADA device servers and integrations in Kotlin-Multiplatform
Go to file
Alexander Nozik 7fc27c49a3 Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
#	build.gradle.kts
#	dataforge-magix-client/src/commonMain/kotlin/hep/dataforge/control/client/magixClient.kt
#	magix/magix-service/src/commonMain/kotlin/hep/dataforge/magix/service/RSocketMagixEndpoint.kt
2020-12-01 10:46:02 +03:00
.github/workflows CI setup and Readme changes 2020-06-07 21:16:19 +03:00
dataforge-device-core Minor refactoring to adopt SharedFlow 2020-11-06 16:28:21 +03:00
dataforge-device-serial A lot of small changes. 2020-09-21 21:34:40 +03:00
dataforge-device-server Minor refactoring to adopt SharedFlow 2020-11-06 16:28:21 +03:00
dataforge-device-tcp Move to stand-alone sse 2020-10-21 23:16:15 +03:00
dataforge-magix-client Merge remote-tracking branch 'origin/dev' into dev 2020-12-01 10:46:02 +03:00
demo Refactor delegated properties 2020-10-10 17:21:28 +03:00
docs Unisolate properties 2020-09-08 10:13:14 +03:00
gradle/wrapper Move to stand-alone sse 2020-10-21 23:16:15 +03:00
magix Merge remote-tracking branch 'origin/dev' into dev 2020-12-01 10:46:02 +03:00
motors Replace Scheme by data class in DeviceMessage 2020-11-05 11:29:40 +03:00
.gitignore Add rsocket service 2020-11-03 18:54:52 +03:00
build.gradle.kts Remove CoroutineScope from Endpoint interface 2020-11-09 19:22:34 +03:00
gradlew Migrate to K-1.4.0 2020-08-31 12:40:49 +03:00
gradlew.bat Migrate to K-1.4.0 2020-08-31 12:40:49 +03:00
LICENSE Initial commit 2020-02-16 15:34:06 +03:00
README.md Magix client refactoring 2020-07-30 16:15:29 +03:00
settings.gradle.kts Replace even id counter with uuid 2020-11-03 22:25:02 +03:00

JetBrains Research

DataForge-control

DataForge-control is a data acquisition framework (work in progress). It is based on DataForge, a software framework for automated data processing. This repository contains a prototype of API and simple implementation of a slow control system, including a demo.

DataForge-control uses some concepts and modules of DataForge, such as Meta (immutable tree-like structure) and MetaItem (which includes a scalar value, or a tree of values, easily convertable to/from JSON if needed).

To learn more about DataForge, please consult the following URLs:

DataForge-control is a Kotlin-multiplatform application. Asynchronous operations are implemented with kotlinx.coroutines library.

Features

Among other things, you can:

  • Describe devices and their properties.
  • Collect data from devices and execute arbitrary actions supported by a device.
  • Property values can be cached in the system and requested from devices as needed, asynchronously.
  • Connect devices to event bus via bidirectional message flows.

dataforge-control-core module packages

  • api - defines API for device management. The main class here is Device. Generally, a Device has Properties that can be read and written. Also, some Actions can optionally be applied on a device (may or may not affect properties).

  • base - contains baseline Device implementation DeviceBase and property implementation, including property asynchronous flows.

  • controllers - implements Message Controller that can be attached to the event bus, Message and Property flows.

demo module

The demo includes a simple mock device with a few properties changing as sin and cos of the current time. The device is configurable via a simple TornadoFX-based control panel. You can run a demo by executing application/run Gradle task.

The graphs are displayed using plotly.kt library.

Example view of a demo: