Skip to content

Dracaltech/sample-java-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Dracal // SDK code sample for Java on CLI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages