Contents
- STARGRASP Core System
- I. Core System Operation
- II. Core Software Overview
- Command Syntax Notes
- Application Notes
- A. Demo Scripts
- B. Toolkit Level
- C. STARGRASP C Libraries
- D. Controller Socket Commands
- adc
- celldes
- cellsel
- clean
- clk
- clvset
- console
- dac
- detsize
- dev
- etime
- etype
- expose
- exposing
- ifconfig
- leds
- ntp
- ot
- otacal
- pixtype
- reset
- readcal
- readout
- settrig
- shutter
- E. Registers and Clocking Instructions
- III. Core Hardware Overview
- IV. Computers and Switches
- V. Test Procedures
- STARGRASP Info-Sheet
- STARGRASP Quick Start
- Extra Software Provided (Unsupported)
Command: | dac |
Contexts: | Network socket, serial console, stage2 only |
Function: | Set output voltages applied to detector (Biases, Clock Rails) |
Required Parameters: | None. |
Optional Parameters: | These are positional parameters. The names are usually omitted. |
op= | Operation (init, pon) or DAC bank number (0, 1, or 2) selection |
ch= | Channel number (0..31, or -1 to set Voffset) |
mv= | Voltage level to set in millivolts, or omit to print current value |
mvafter= | Pulse mode: Voltage level to set after a delay. In millivolts. |
mspulse= | Pulse mode: Set mv=, delay mspulse= milliseconds, then set mvafter=. |
Usage
dac init
Sets all outputs to the power-on default voltage level of 0.05V (50 mV). Voltages are slewed to this level on all DAC outputs progressively, to try to avoid any dangerous conditions such as reverse biasing circuits, etc. However, the safest way to power off is to use a higher level tool with customized knowledge of the detector. These tools can bring voltage levels to zero by reversing prescribed power-on sequences.
dac 0
Prints the voltages for all 32 channels of DAC 0, which corresponds to clocking engine 0 or "dev 0".
dac 1
Prints the voltages for all 32 channels of DAC 1, which corresponds to clocking engine 1 or "dev 1".
dac 2
Prints the voltages for all 32 channels of DAC 2.
- Channels 0-7 control the readcal offset voltage for "dev 0" ADC channels 7 through 0 (note reversal in order here!).
- Channels 8-15 control the readcal offset voltage for "dev 1" ADC channels 7 through 0 (note reversal).
Advanced Usage
Setting voltages with the DAC command can harm the detector! There are no safety limits or sequencing requirements enforced at this level. The "dac" command is intended to be called by a higher level "grasp_pon" tool which checks if the correct detector is connected, knows safe limits, and sequences power on and power off according to available information from device data sheets. These tools will restore operating voltages and, usually, the internal offset voltages determined by "readcal". Setting "dac 2 0..15" to a different value may be necessary if automatic readcal did not converge, but be very careful to only access "dac 2" and channels 0 through 15. Setting the wrong voltage can damage the detector!
dac 2 0 -35
Sets the internal ADC offset voltage (readcal) for dev 0 channel 7 to -35 millivolts.
dac 2 1 160
Sets the internal ADC offset voltage (readcal) for dev 0 channel 6 to 160 millivolts.