EPICS: SCALER : ADDING CRATES: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| (2 intermediate revisions by 2 users not shown) | |||
| 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: == | ||
* ssh to clonioc1 as developer (boiarino etc) | |||
* from shell prompt: | * from shell prompt: | ||
source ~ | source ~sytnik/c | ||
* cd0s | * cd0s | ||
| Line 12: | Line 14: | ||
* g++ -o program db_generator.cpp | * g++ -o program db_generator.cpp | ||
* ./program | |||
* edit startup_new.all | * edit startup_new.all | ||
| Line 25: | Line 27: | ||
* qtcreator | * qtcreator | ||
Menu File >> Open file or project | Menu File >> Open file or project | ||
browse to /usr/clas12/release/0.2/epics/qt/epicsqt_v1/scalers | |||
select scalers.pro | select scalers.pro | ||
click OPEN | click OPEN | ||
| Line 42: | Line 44: | ||
* to start scalers gui | * to start scalers gui | ||
from shell prompt: | from shell prompt: | ||
source ~ | source ~sytnik/c | ||
gui_sc | gui_sc | ||
Latest revision as of 12:49, 19 November 2014
how to to add a crate, start scaler IOC, start scalers GUI:
- ssh to clonioc1 as developer (boiarino etc)
- 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 browse to /usr/clas12/release/0.2/epics/qt/epicsqt_v1/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