EPICS: SCALER : ADDING CRATES: Difference between revisions

From CLONWiki
Jump to navigation Jump to search
Created page with "== how to to add a crate, start scaler IOC, start scalers GUI: == 1) from shell prompt: source ~/sytnik/c 2) cd0s 3) edit CRATES/SLOTS CONFIGURATION part of the file..."
 
No edit summary
Line 1: Line 1:
== how to  to add a crate, start scaler IOC, start scalers GUI: ==
== how to  to add a crate, start scaler IOC, start scalers GUI: ==


1) from shell prompt:
* from shell prompt:
     source ~/sytnik/c
     source ~/sytnik/c


2) cd0s
* cd0s


3)
* edit CRATES/SLOTS CONFIGURATION part of the file:
 
edit CRATES/SLOTS CONFIGURATION part of the file:
   db_generator.cpp :
   db_generator.cpp :
in particular:  NCRATES,  
  in particular:  NCRATES,  
                  crate_names[]
                    crate_names[]


g++ -o program  db_generator.cpp
* g++ -o program  db_generator.cpp
./program
  ./program


4) edit startup_new.all
* edit startup_new.all
    to add, for example:
  to add, for example:
    
    
Start_SCALERS_CRATE("1",  "hps12")  
  Start_SCALERS_CRATE("1",  "hps12")  


5) Scalers IOC start:
* Scalers IOC start:
    mye_s
  mye_s




6) qtcreator  
* qtcreator  
    Menu File >> Open file or project
  Menu File >> Open file or project
     brows to  /misc/clas12/release/0.2/epics/qt/epicsqt_v1/build-scalers-Desktop-Debug/scalers
     brows to  /misc/clas12/release/0.2/epics/qt/epicsqt_v1/build-scalers-Desktop-Debug/scalers
     select scalers.pro
     select scalers.pro
     click OPEN  
     click OPEN  
    
    
7) in qtcreator environment :
* in qtcreator environment :
    expand "Sources"
  expand "Sources"
    double click mainwindow.cpp
  double click mainwindow.cpp
     find: CONFIGURATION PIECE
     find: CONFIGURATION PIECE
     edit: NCRATES,
     edit: NCRATES,
Line 42: Line 40:
     Menu Build >> build project "scalers"
     Menu Build >> build project "scalers"
    
    
8) to start scalers gui
* to start scalers gui
    from shell prompt:
  from shell prompt:
    source ~/sytnik/c
  source ~/sytnik/c
    gui_sc
  gui_sc

Revision as of 13:55, 18 November 2014

how to to add a crate, start scaler IOC, start scalers GUI:

  • from shell prompt:
   source ~/sytnik/c
  • cd0s
  • edit CRATES/SLOTS CONFIGURATION part of the file:
  db_generator.cpp :
  in particular:   NCRATES, 
                   crate_names[]
  • g++ -o program db_generator.cpp
 ./program
  • edit startup_new.all
 to add, for example:
  
 Start_SCALERS_CRATE("1",  "hps12") 
  • Scalers IOC start:
 mye_s


  • qtcreator
  Menu File >> Open file or project
   brows to  /misc/clas12/release/0.2/epics/qt/epicsqt_v1/build-scalers-Desktop-Debug/scalers
   select scalers.pro
   click OPEN 
  
  • in qtcreator environment :
 expand "Sources"
 double click mainwindow.cpp
   find: CONFIGURATION PIECE
   edit: NCRATES,
         board_types_by_crate_ioc
         hv_crate_names
         hv_crate_names_ioc
        
   Menu Build >> build project "scalers"
  
  • to start scalers gui
 from shell prompt:
 source ~/sytnik/c
 gui_sc