#!dimctrl --exec

# Ramping bias up and down
# this is just a test, to check the order of states of biasctrl while ramping.
FEEDBACK/ENABLE_OUTPUT 1
FAD_CONTROL/SET_FILE_FORMAT 0
.s BIAS_CONTROL 7
FAD_CONTROL/SET_FILE_FORMAT 2
.w 500
FAD_CONTROL/SET_FILE_FORMAT 0
# Bias ist Off  .. switching it on
BIAS_CONTROL/SET_GLOBAL_DAC 1
.s BIAS_CONTROL 9
.s BIAS_CONTROL 5
.s BIAS_CONTROL 9
FAD_CONTROL/SET_FILE_FORMAT 2
.w 500
FAD_CONTROL/SET_FILE_FORMAT 0
.w 2000
# Bias ist On .. switching it off
BIAS_CONTROL/SET_ZERO_VOLTAGE
.s BIAS_CONTROL 7
FAD_CONTROL/SET_FILE_FORMAT 2
.w 500
FAD_CONTROL/SET_FILE_FORMAT 0
# Bias ist Off again . stopping this script.

