GUI for developpers

Web interface:

https://svnweb.cern.ch/cern/wsvn/tpx3gui

The development is JavaFX (JavaFX FXML Application) and probably the best is to use NetBeans IDE 7.4 (or newer). You are going to need NetBeans with a jdk which supports JavaFX plus the JavaFX Scene Builder.

  • Download NetBeans IDE with jdk. Google for "jdk with netbeans download"
  • Get sepparately JavaFX Scene Builder 1.1 and install it.

Before openning NetBeans note that the program picks your environment from your local settings. Later on you will need NetBeans to pick your LD_LIBRARY_PATH. We'll come back to this point later. Open NetBeans and create a JavaFX FXML Application project named TPX3JUI.

The project will have a package called "tpx3jui" (lower case). Go to your NetBeans workspace

$ cd NetBeansProjects

The structure of the repository at svn+ssh://svn.cern.ch/reps/tpx3gui/TPX3JUI has the same directory structure than your recently created NetBeams project "TPX3JUI". You can checkout the project here and you'll be including and overriding the necesary files. But before doing that, in order to let the svn checkout go through, you will have to erase the directories which are in the way. Then you can checkout.

$ rm -Rf ./TPX3JUI/src
$ svn co svn+ssh://svn.cern.ch/reps/tpx3gui/TPX3JUI

Now go to the tpx3gui package and let's prepare the binder. If you haven't installed the SPIDR library yet follow this link. There is a makefile which needs to know the location of your jvm installation and the SPIDR lib installation. You can inform the Makefile by setting two env variables. For the jvm, use the same jvm that your project is tied to. To find this info, right click on the project root (TPX3JUI with the cup of coffee) and select "Properties". Go to "Libraries". Click on "Manage Platforms". See the "Platform Folder" information. Use the same path to set up the following environment variable.

$ export JAVAPLATFORM=/usr/lib/jvm/jdkXXX

And for the SPIDR lib the path should be something like (make it match your installation)

$ export SPIDRLIB=$HOME/daq/SPIDR/software/trunk/

Now you can build

$ cd TPX3JUI/src/tpx3jui
$ make

(If for some reason you need to produce the binder files you can use the target: make buildfiles. This happens only if you are working on the binder.)

Some minimum configuration of NetBeans is necessary now before we get to runtime. In the "Projects" tab (left) right click on the root of the project (TPX3JUI with the coffee cup) and go to "Properties". In the new window, under "Run", we need to modify the VM Options by indluding the java.library.path. We need the SPIDR library location and our own binder location. Include the following line in the VM Options box (modify it to meet your system configuration).

-Djava.library.path=/home/idarraga/daq/SPIDR/software/trunk/Release:/home/idarraga/NetBeansProjects/TPX3JUI/src/tpx3jui

If you are running NetBeans form a terminal make sure these two paths (as in java.library.path) are in your LD_LIBRARY_PATH as well. This is needed becuase dependencies inside the libraries make it necesary to have both the java.library.path and the LD_LIBRARY_PATH set. MacOS users need DYLD_LIBRARY_PATH. If necesary close NetBeans, set the env variable LD_LIBRARY_PATH and run NetBeans again.

Also we want NetBeans to be aware of the installation of JavaFX Scene Builder 1.1. This separated software will help us developing the GUI. Go to "Tools" (in the menu bar) and then "Options". Under "Java" and "JavaFX" tab modify the JavaFX integration to meet your system configuration.

For statistics manipulation we use R bind to Java. You need to do the following

$ sudo apt-get install r-base
$ sudo R
> install.packages("rJava")

Now set the following env variables

export R_HOME=/usr/lib/R
export R_SHARE_DIR=/usr/share/R/share
export R_INCLUDE_DIR=/usr/share/R/include
export R_DOC_DIR=/usr/share/R/doc
export JRI_LD_PATH=${R_HOME}/lib:${R_HOME}/bin:

Finally again right click on the root of the project (TPX3JUI with the coffee cup) and go toproperties->libraries->add jar/folder. The installation of rJava put a file 'JRI.jar' somewhere probably at /usr/local/lib/R/ site-library/rJava/jri. Find the JRI.jar and Add it. Finally in the category "Run" append the path to the place where you find JRI.jar to the VM options (-Djava.library.path)

:/usr/local/lib/R/site-library/rJava/jri

Done.

Access repository also possible through https

https://svn.cern.ch/reps/tpx3gui 

Extra packages you need

libgl1-mesa-dri (follow your installation package for dependencies)

GUI for users

Hardware

Firmware

The FPGA and the Leon SW come in the form of a MCS file. You need to program the BPI PROM using Impact from the Xilinx ISE Suite. The FLASH is a BPI PROM 28F00AG18F.

Other info

S1 at pos "1100" to read from XILIX/cfg4 in the Compact flash. Locate spder.ace in that location.

GPIO LEDS should blink fast (3 of them) and then one blinks slower.

Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r9 - 2014-06-03 - JohnIdarraga
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback