Dashboard > NanoBPM > ... > Data Acquisition and Software > Digitizers and DAQ information
  NanoBPM Log In View a printable version of the current page.  
  Digitizers and DAQ information
Added by Stewart Boogert, last edited by Toyoko Jennifer Orimoto on Dec 04, 2006  (view change)
Labels: 
(None)

Layout of main daq function calls

nanorun
  ./atf_bpms nsamp &
  take_sn(nsamp)
    do i=1,nsamp
      nanoacq
        sisacq_func
          mcget(lsis1:waveform0,1,2,3..)  // waveform data
          mcget(BPM_Position)             // nanogrid data
    endo

SIS card information

We have 2 Struck SIS3301 and 1 Struck SISXXXX digitizers
sis3300_v340.pdf

To change the number of SIS cards used in the readout

Log into nanosun

ssh -Y nanosun.kek.jp -l user1

nanosun> cd msaves/
nanosun> Edit nanoinit.m
nanosun> Edit ncards= to the number of cards installed

restart all matlab processes

To check sisdata directly in Matlab

Log into nanosun

ssh -Y nanosun.kek.jp -l user1

nanosun> cd nanorun/msaves/DATE_TIME_DIRECTORY/
nanosun> matlab_nd
matlab> load 'RUN1.mat'
matlab> plot(sisdata{evtnumber}(:,sischannelnumber))

evtnumber in number of beam extraction
sischannelnumber is the sischannel+3*cardnumber

SIS configuration
(record length)

1) Edit /home/user1/mfiles/reconfig_short.m changing the value of mystruc(icard).myvalues{2}

2) SIS database configuration (Record length). As NanoAdmin

/home/cdvxn/cmd/

SIS 1 & 2 : dbsis.cmd
SIS 3 : dbsis3.cmd

for 8000 record length
SIS 1 & 2 : dbsis_8000.cmd
SIS 3 : dbsis3_8000.cmd

for 250 record length
SIS 1 & 2 : dbsis_250.cmd
SIS 3 : dbsis3_250.cmd

copy corresponding dbsisX_XXX.cmd to dbsisX.cmd

3) reboot nanovw :

rsh nanovw
reboot (to reboot)
logout (to logout)

4) ping nanovw (192.168.0.3) to check it is alive

5) test with caget lsis1:waveform0

Clocking

Edit /home/user1/mfiles/reconfig_short.m
change follow lines

mystruc(icard).myvalues{5}=0; % 100 MHz

to

mystruc(icard).myvalues{5}=6; % External clock

To implement the clock, please exit from matlab and restart matlab_nano

These commands are in a loop over icard, depends on the number of cards implemented
and if all are externally clocked. You might find these commands in if-else
control structure

To include or exclude nanogrid data

Edit file

~/mfiles/sisacq_func.m

to remove nanogrid readout comment out line

gridrawdata(:,ievent) = mcaget(gridstruc.handle)';

Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.8 Build:#814 Oct 02, 2007) - Bug/feature request - Contact Administrators