jdi194

(last updated: 2005/07/21)

Purpose: Provides a PC interface program for the Dataq DI-194 that captures, displays and saves data.

Overview

The Dataq DI-194 is a small data acquisition board that includes four A/D inputs and three digital inputs. jdi194 provides a Java application that gets the data from the DI-194 and displays it on a graph. The data can be saved to a file, either in its raw form, or it can be exported to human readable comma delimitted format. The main intent of this project is to provide a simple interface to the DI-194 and also as a learning exercise. Jdi194 is not a robust program so it may contain bugs that were not found during the minimal testing that was performed (there are no known bugs). It does not have the features of the WinDAQ(Lite) software, but this source code is free and it gives a developer a stepping stone to developing their own custom program.

It is not fully compatible with the DI-194RS (only looks at 8-bits of the A/D whereas the DI-194RS has 10-bit resolution), but with a little work it could.

See the User Guide for more information.

Highlights of the Java application:

- Loads and displays a preexisting image for the graph.

- Plots (draws) lines on the image that represent the collected data.

- Plotting is animated by updating the image as new data arrives (uses double-buffering for image rendering – BufferedImage class).

- Serial port interface using javax.comm.

- Shows how to use the DI-194's command protocol.

- Shows how to bring up a configuration dialog box.

- Shows how to use a JScrollBar, JMenuBar, and JToolBar.

- Lots of swing components.

- File saving and loading.

- Captures the plot image and saves to jpg file.

- Shows how to use the Properties class to keep track of configuration.

- Jbuilder 2005 project.

My Setup:

- PC running Jbuilder 2005 Foundation with the jdi194 project

- DI-194 boards (board 1: pcb=Rev. G, firmware=Rev. T; board2: pcb=Rev. E, firmware=Rev. E)

Downloads (see Attachments)

jdi194 - Source code + JBuilder project + User Guide.

Links

DATAQ

You may have to search DATAQ's tech support section to find info on th DI194. I have archived a lot of the information on this device so you could request me to email it to you (sea000@gmail.com).

Terms of Use

Home

Copyright Steven R. Nickels, 2008. All rights reserved.