devlist = ['01', '02', '03', '04', '05', '06', '07', '08'] for dev in devlist: caput("S10CB" + dev + "-RSYS:SET-BEAM-PHASE", 83.5)