Project

General

Profile

VLD EPICS development » History » Revision 4

Revision 3 (Bryan Moffit, 02/06/2023 01:03 PM) → Revision 4/7 (Bryan Moffit, 02/10/2023 10:18 PM)

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 Slot17 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>