Phone:(705) 671-2652
    Fax:(705) 671-6127
   Email: tom@ontrak.net
Home Products Programming Applications Custom Designs Ordering News
    
Running The AduJava Demo

To run the AduJava demo you must have the Java SDK installed on your computer. Visit the Sun Microsystems web page and download the J2SE software development kit. At the time this article was written the SDK was called j2sdk-1_4_2_07-windows-i586-p.exe but that is sure to change.

Download the AduJava demo archive.

Extract the AduJava.zip onto your hard drive.

Edit the setpath.bat file so that it points at the directory in which java is installed on your computer. On my computer java is in C:\j2sdk1.4.2_07\bin so the set path command is:

    set path=%path%;C:\j2sdk1.4.2_07\bin

Or as viewed through everyone's favourite text editor:

Open a DOS command prompt window.

Change to the directory containing AduJava.class:

    cd C:\AduJava

Run the setpath.bat file that you prepared earlier:

    setpath

Run the AduJava demo using the java launcher:

    java AduJava 

The default actions for the demo are to set all relays off and then set relay K0 on with the "mk1" command. You should hear a click if you run this with an ADU200 board that has mechanical relays.

The screen should look like this:

Note: The set path command displays a long string of directories that will not match the display on your screen. That is OK since the path should match your environment and not mine. Just ensure that the directory containing java is included in the path displayed on your screen.

Our example board has LEDs wired to the relays so that we can see that relay K0 is on.

More examples can be seen here.

 


AduJava Help File Version 1.0.0.0
Copyright 2005 Ontrak Control Systems Inc.

 
    
Contact Information
Address Telephone Electronic Mail
Ontrak Control Systems Inc.
764 Notre Dame Ave., Unit #1
Tel: (705) 671-2652 General Information Sales or Support
Sudbury,Ontario Fax:(705) 671-6127 tom@ontrak.net
CANADA P3A 2T2    
              
Next-Day shipping anywhere in Continental U.S. via Fed-Ex
Copyright 2012 ONTRAK CONTROL SYSTEMS 764 Notre Dame Ave, Unit #1 , Sudbury, Ontario, CANADA P3A 2T2  
"Quality serial Data Acquisition Interfaces"           PH. (705) 671-2652 FAX (705) 671-6127