Rev 32 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 32 | Rev 37 | ||
---|---|---|---|
Line 543... | Line 543... | ||
543 | 543 | ||
544 | GetCtrlVal(p1h, P1_ADCHLSAVE, &runrec.xy); |
544 | GetCtrlVal(p1h, P1_ADCHLSAVE, &runrec.xy); |
545 | SetCtrlVal(p1h, P1_ADCHL, runrec.xy-2); |
545 | SetCtrlVal(p1h, P1_ADCHL, runrec.xy-2); |
546 | 546 | ||
547 | QueueUserEvent (1000, p1h, P1_RESET); |
547 | QueueUserEvent (1000, p1h, P1_RESET); |
548 |
|
548 | QueueUserEvent (1000, p1h, P1_ASD8THR); |
549 | QueueUserEvent (1000, p1h, P1_AMPDISSHTHR); |
549 | QueueUserEvent (1000, p1h, P1_AMPDISSHTHR); |
- | 550 | QueueUserEvent (1000, p1h, P1_BIAS); |
|
550 | do { |
551 | do { |
551 | GetUserEvent (1, &pID, &rID); |
552 | GetUserEvent (1, &pID, &rID); |
552 | switch (rID) { |
553 | switch (rID) { |
553 | case P1_TIMER: |
554 | case P1_TIMER: |
554 | ntics+=1; |
555 | ntics+=1; |
Line 648... | Line 649... | ||
648 | case P1_ADCLOG: |
649 | case P1_ADCLOG: |
649 | GetCtrlVal (p1h, P1_ADCLOG, &status); |
650 | GetCtrlVal (p1h, P1_ADCLOG, &status); |
650 | SetCtrlAttribute (p1h, P1_ADC, ATTR_YMAP_MODE, status); |
651 | SetCtrlAttribute (p1h, P1_ADC, ATTR_YMAP_MODE, status); |
651 | update_plots(); |
652 | update_plots(); |
652 | break; |
653 | break; |
653 |
|
654 | case P1_ASD8THR: |
654 | { |
655 | { |
655 | double value; |
656 | double value; |
656 |
|
657 | GetCtrlVal (p1h, P1_STHRLOW, &value); |
657 | SetDac(0, value); |
658 | SetDac(0, value); |
658 | |
659 | |
659 | } |
660 | } |
660 |
|
661 | break; |
- | 662 | case P1_BIAS: |
|
- | 663 | { |
|
- | 664 | double value; |
|
- | 665 | GetCtrlVal (p1h, P1_SBIAS, &value); |
|
- | 666 | SetDac(2, value); |
|
- | 667 | } |
|
- | 668 | break; |
|
661 | case P1_AMPDISSHTHR: |
669 | case P1_AMPDISSHTHR: |
662 | { |
670 | { |
663 | double value; |
671 | double value; |
664 | GetCtrlVal (p1h, P1_SAMPDISSHTHR, &value); |
672 | GetCtrlVal (p1h, P1_SAMPDISSHTHR, &value); |
665 | SetDac(1, value); |
673 | SetDac(1, value); |