A data acquisition Java library for the Protek 608 digital multimeter
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Protek608
.gitignore
LICENSE
README.md

README.md

Protek608

A data aquisition Java library for the Protek 608 digital multimeter. Visit the project homepage for more information about the Protek 608 digital multimeter, development blogs, and how this software has been used in the field.

Current Release

Planned Releases

  • Release v1.1.0 - Enhanced data aquisition and statistics.

Documentation

Detailed documentation on this library and implementation is coming soon. In the meantime, you can find more information on the project home page.

Quick Start

Main class

Your main class may look something like this:

import com.dariancabot.protek608.Protek608;

public class MyNewApp
{
  public static void main(String[] args)
  {
    // Create a new Protek608 instance and set the Event Listener for receiveing data.
    Protek608 protek608 = new Protek608();
    Events events = new Events();
    protek608.setEventListener(events);
    
    // Connect to the "COM3" serial port, and start receiving data.
    protek608.connectSerialPort("COM3");
  }
}

Event Listener class

Your event listener class (to handle data) may look like this:

import com.dariancabot.protek608.EventListener;

public class Events implements EventListener
{
  @Override
  public void dataUpdateEvent()
  {
    Double measurement = MyNewApp.protek608.data.mainValue.getValueDouble();
    String unit = MyNewApp.protek608.data.mainValue.unit.toString();
    System.out.println("Measurement = " + measurement + " " + unit);
  }
}

Data statistics

You can also access statistical data like this:

// Enable statistics for the main DMM value.
MyNewApp.protek608.data.mainValue.statistics.setEnabled(true);

// Now as data is received, it's included in the statistic calculations.
// ... time passes, measurements are read ...

// Let's get the average value.
MyNewApp.protek608.data.mainValue.statistics.getAverage()

// The user changed to a different measurement type so let's reset the stats.
MyNewApp.protek608.data.mainValue.statistics.reset();

Development Environment

  • This project was created with the NetBeans 8.0 IDE (some specific project files are found in the repository).
  • Developed using JDK 1.7.
  • jSSC 2.6.0 is used for serial communications.
  • JUnit 4.10 and Hamcrest 1.3 are used for unit testing.