domtest simple example

Here, a simple example of the development of a stand alone program is available.   The program was needed to take a file of data from an ATWD, and display the pulses in a window.  Here is a couple lines of data as they appear in the data files:

90084070 0000003f 00000047 0000003e 0000003f 
90084080 00000049 00000035 0000003d 0000003e 
90084090 00000039 00000043 0000003f 0000003b 
900840a0 00000045 0000003c 0000003a 0000004a 
900840b0 00000045 00000050 00000043 0000003b 
900840c0 00000039 0000003f 00000046 00000033 
900840d0 0000003c 0000003d 0000003a 00000041 
900840e0 0000002e 00000045 0000003d 00000044

The first comlumn is an address for the location of the following ticks.  The next four columns represent actual ticks.  If the ticks were numbered, the first 128 would belong to ATWD1 channel 1.  The next 128 ticks belong to ATWD1 channel 2.  There are two ATWD converters, each with four channels.  Each channel is written backwards, ie. the first data tick is actually the last chronologically.  Each channel needs it's own histogram, and these histogramas should be displayed so that they can all be viewed easily.  

The following pages will show you several steps of the development process, the resulting java code, and then the final screenshots.