Project

General

Profile

VLD EPICS development » History » Revision 6

Revision 5 (Bryan Moffit, 02/15/2023 01:15 AM) → Revision 6/7 (Bryan Moffit, 02/15/2023 01:17 AM)

h1. VLD EPICS development 

 h2. Run the IOC 

 * log into hccoda@nps-vme4 from a terminal 
 <pre> 
 ssh hccoda@nps-vme4 
 </pre> 
 * execute startup script (located in $HOME/bin) 
 <pre> 
 startIOC 
 </pre> 

 h2. Calibration test script 

 Enable / disable the random pulser to the connector and channels defined in the script. 

 * log into hccoda@cdaql3 from a terminal 
 <pre> 
 ssh hccoda@cdaql3 
 </pre> 
 * execute calibration test script 
 <pre> 
 cd $HOME/scripts/VLD 
 ./vld_calibration_test [0,1] 
 </pre> 
 > * Usage 
 <pre> 
   vld_calibration_test.sh [0,1] 
                      0: disable 
                      1: enable 

 </pre> 

 > * Script variable description 
 > > * *VLDSLOT* 
 > > > IOC Base name + VLD Slot number.    This is defined by the IOC startup script.    Currently vme4 for nps-vme4, and VLD17 for the VLD in that crate. 

 > > * *PULSER_SETTING* 
 > > > Enum for random pulser setting 
 <pre> 
  0: 700kHz 
  1: 350kHz 
  2: 175kHz 
  3: 87.5kHz 
  ... 
  7: 5.5kHz 
  ... 
 15: 21 Hz 
 </pre> 

 > > * *TRIG_SOURCE* 
 > > > Source to trigger pulser 
 <pre> 
  0: always high (should be Periodic trigger), 
  1: random trigger only 
  2: FP_trigger 
 </pre> 

 > > * *C0_LOW_MASK*, *C0_HIGH_MASK*, *C1_LOW_MASK*, *C1_HIGH_MASK*, etc.. 
 > > > Connector channel enable bitmasks.    E.g. to enable connection 0's channel 0 and 1,  
 <pre> 
 C0_LOW_MASK=0x3 
 </pre> 

 h2. Square wave pulse script 

 Set the pulse waveform to a square wave with specified width and amplitude 

 * log into hccoda@cdaql3 from a terminal 
 <pre> 
 ssh hccoda@cdaql3 
 </pre> 
 * execute square wave pulse script 
 <pre> 
 cd $HOME/scripts/VLD 
 ./vld_square_pulse.sh [width] [amplitude] 
 </pre> 
 > * Usage 
 <pre> 
   vld_square_pulse.sh [width] [amplitude] 
                      width: steps of 2ns [0, 1000] 
                      amplitude: DAC setpoint at each step [0, 63] 

 </pre> 

 h2. Periodic Pulser script 

 Set the parameters for the periodic pulser. 

 * log into hccoda@cdaql3 from a terminal 
 <pre> 
 ssh hccoda@cdaql3 
 </pre> 
 * execute periodic pulser square wave pulse script 
 <pre> 
 cd $HOME/scripts/VLD 
 ./vld_periodic_pulser.sh ./vld_square_pulse.sh [width] [amplitude] 
 </pre> 
 > * Usage 
 <pre> 
   vld_periodic_pulser.sh [period]    [period_range]    [number] 
                      [period]         :    Pulser period in units of period_range 
                      [period_range] : 0: 8 nanoseconds 
                                     : 1: 8.2 microseconds 
                      [number]         : Number of pulses.    65535 for unlimited 
 

 </pre>