Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.08 KB

README.md

File metadata and controls

42 lines (31 loc) · 1.08 KB

sample-java-cli

Dracal // SDK code sample for Java on CLI

Assumptions

Running this repository requires you to have installed:

  • Java (version >= 11)
  • Gradle (version >= 6.7)
  • DracalView (version >= 3.2.x)
    • Specifically, dracal-usb-get needs to be accessible from your PATH environment variable (more info in the documentation how-to).

Script may need to be adjusted depending on your instrument's # of outputs (currently assumed: 3 outputs). See script comments for details.

You can test your setup by executing a build:

gradle build

Simple usage

Run script

gradle execute

Sample output

Ξ dracal/sample-java-cli git:(main) ▶ gradle execute

> Task :execute
Temperature (C):21.47
RH......... (%):56.32
Pressure..(kPa):101.19
Temperature (C):70.645996

BUILD SUCCESSFUL in 821ms
2 actionable tasks: 1 executed, 1 up-to-date
Ξ dracal/sample-java-cli git:(main) ▶