A Simple GUI VME Application

Follow the steps below to create, compile, and run a simple Java program to read and write a VME register. This program will perform the operation in response to a button click. The data read will be displayed in a graphical window.

Create the Java Source file

Using your favorite editor, create the file VMEGUITest.java or just save the link using a browser. This program will write then read address offset 0 of a module specified on the command line.

Compile the Source File

First, set up the Java Development Kit and the FISION VME library. On the B0 unix cluster, issue the commands:
    setup jdk 1.1.1
    setup fision
Then, compile the program:
    javac VMEGUITest.java
When compilation is complete, the file VMETest.class will appear in the current directory.

Run the Program

To run the program, issue the command:
    java GUIVMETest b0ts01 18
(Substitute a valid MVME-162 node name and occupied VME slot for the last two parameters).