from org.csstudio.opibuilder.scriptUtil import PVUtil
from org.csstudio.opibuilder.scriptUtil import ScriptUtil
val = PVUtil.getDouble(pvs[0])
if val == 1:
	val = 0
	pvs[0].setValue(val)
	filename = "/home/opertok/CSS-Workspaces/sys-mng-opi/CSS/gams/"+display.getWidget("FileNameTextInput2").getPropertyValue("text")+"GAM/"+display.getWidget("FileNameTextInput2").getPropertyValue("text")+"GAM.cfg"
	myfile = open(filename, 'w')
	myfile.write('LoggerAddress = "localhost"\n')
	myfile.write('LoggerPort = 32767\n')
	myfile.write('DefaultCPUs = 2\n')
	myfile.write('+OBJBROWSE = {\n')
	myfile.write('\tClass = HttpClassListResource\n')
	myfile.write('\tFake = 1\n')
	myfile.write('}\n')
	myfile.write('+THRBROWSE = {\n')
	myfile.write('\tClass = HttpThreadListResource\n')
	myfile.write('}\n')
	myfile.write('+BROWSE = {\n')
	myfile.write('\tTitle = "Http GCRC Browser"\n')
	myfile.write('\tClass = HttpGCRCBrowser\n')
	myfile.write('\tAddReference = {StateMachine MARTe OBJBROWSE THRBROWSE HTTPCFGUploader HTTPSignalServer}\n')
	myfile.write('}\n')
	myfile.write('+HTTPSERVER = {\n')
	myfile.write('\tClass = HttpService\n')
	myfile.write('\tPort = 8085\n')
	myfile.write('\tVerboseLevel = 10\n')
	myfile.write('\tHttpRelayURL = "ignore.me:1234"\n')
	myfile.write('\tRoot = BROWSE\n')
	myfile.write('}\n')
	myfile.write('+HTTPCFGUploader = {\n')
	myfile.write('\tClass = CFGUploader\n')
	myfile.write('}\n')
	myfile.write('+TCPMessageHandler = {\n')
	myfile.write('\tClass = TCPMessageHandler\n')
	myfile.write('\tServerPort = 9090\n')
	myfile.write('}\n')
	myfile.write('+TCPConfigurationHandler = {\n')
	myfile.write('\tClass = TCPConfigurationHandler\n')
	myfile.write('\tServerPort = 10010\n')
	myfile.write('\tMARTeLocation = MARTe\n')
	myfile.write('}\n')
	myfile.write('+HTTPSignalServer = {\n')
	myfile.write('\tClass = SignalServer\n')
	myfile.write('}\n')
	myfile.write('+EPICSLib = {\n')
	myfile.write('\tClass = EPICSHandler\n')
	myfile.write('\tRunOnCPU_event = 16\n')
	myfile.write('\tRunOnCPU = 2\n')
	myfile.write('\tPREFIX = TEST-MNGR-PCF2:\n')
	myfile.write('\tasyncScan = true\n')
	myfile.write('\tdebugLevel = 0\n')
	myfile.write('\tasyncDelay = 0.1\n')
	myfile.write('\tmaxSimultAsyncIO = 100\n')
	myfile.write('\tscanOn = true\n')
	myfile.write('\tProcessVariable = {\n')
	myfile.write('\t\tpv_1 = {\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-CYCLE-TIME-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tHIGH = 400\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tEGU = "us"\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tHIHI = 450\n')
	myfile.write('\t\t\tINP = "CycleUsecTime"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tDESC = "MARTe Cycle Time"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHOPR = 500\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_98 = {\n')
	myfile.write('\t\t\tINP = "fileTime"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tNAME = STMA-FILE-TIME-G\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tDESC = "MARTe Absolute Time"\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tEGU = "us"\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tTYPE = aitEnumInt32\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_99 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_top_0"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-TOP0-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_100 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_top_1"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-TOP1-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_101 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_top_2"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-TOP2-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_102 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_top_3"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-TOP3-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_103 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_top_4"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-TOP4-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_104 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_top_5"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-TOP5-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_105 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_top_6"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-TOP6-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_106 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_top_7"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-TOP7-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_107 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_outer_0"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-OUT0-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_108 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_outer_1"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-OUT1-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_109 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_outer_2"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-OUT2-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_110 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_outer_3"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-OUT3-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_111 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_outer_4"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-OUT4-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_112 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_outer_5"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-OUT5-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_113 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_outer_6"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-OUT6-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_114 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_outer_7"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-OUT7-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_115 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_bottom_0"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-BOT0-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_116 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_bottom_1"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-BOT1-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_117 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_bottom_2"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-BOT2-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_118 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_bottom_3"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-BOT3-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_119 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_bottom_4"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-BOT4-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_120 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_bottom_5"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-BOT5-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_121 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_bottom_6"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-BOT6-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_122 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_tomography_bottom_7"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-TOMO-BOT7-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_123 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_v_primary"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-V-PRI-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_124 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_H_alpha"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-H-ALPHA-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_125 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_sine_probe"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-SIN-PROBE-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_126 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_cosine_probe"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-COS-PROBE-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_127 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_main_rogowski"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-MAIN-ROGW-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_128 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Amps"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_horizontal_current"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-HORZ-CURR-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_129 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Amps"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_vertical_current"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-VERT-CURR-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_130 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Amps"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_primary_current"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-PRIM-CURR-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_131 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_interferometry_sine"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-INTF-SIN-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_132 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_interferometry_cosine"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-INTF-COS-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_133 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_vloop"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-V-LOOP-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_134 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_magnetic_0"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-MAGN-0-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_135 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_magnetic_1"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-MAGN-1-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_136 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_magnetic_2"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-MAGN-2-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_137 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_magnetic_3"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-MAGN-3-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_138 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_magnetic_4"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-MAGN-4-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_139 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_magnetic_5"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-MAGN-5-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_140 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_magnetic_6"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-MAGN-6-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_141 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_magnetic_7"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-MAGN-7-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_142 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_magnetic_8"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-MAGN-8-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_143 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_magnetic_9"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-MAGN-9-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_144 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_magnetic_10"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-MAGN-10-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_145 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_magnetic_11"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-MAGN-11-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_146 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_electric_top_near"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-ETOP-NEAR-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_147 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_electric_outer_near"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-EOUT-NEAR-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_148 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_electric_bottom_near"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-EBOT-NEAR-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_149 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "ADC_electric_inner_near"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-ADC-EINN-NEAR-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_150 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "InSaturation"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumInt32\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-IN-SATU-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_153 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "MagneticProbesR"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-MAGN-PRBR-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_154 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "MagneticProbesZ"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-MAGN-PRBZ-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_155 = {\n')
	myfile.write('\t\t\tHSV = "MINOR"\n')
	myfile.write('\t\t\tLOLO = 0\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tHHSV = "MAJOR"\n')
	myfile.write('\t\t\tLSV = "MINOR"\n')
	myfile.write('\t\t\tEGU = "Volts"\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tMDEL = 0\n')
	myfile.write('\t\t\tPREC = 2\n')
	myfile.write('\t\t\tHIHI = 9\n')
	myfile.write('\t\t\tINP = "MagneticProbesPlasmaCurrent"\n')
	myfile.write('\t\t\tADEL = 0\n')
	myfile.write('\t\t\tLOW = 0\n')
	myfile.write('\t\t\tTYPE = aitEnumFloat64\n')
	myfile.write('\t\t\tHYST = 0\n')
	myfile.write('\t\t\tNAME = STMA-MAGN-PPC-G\n')
	myfile.write('\t\t\tLLSV = "MAJOR"\n')
	myfile.write('\t\t\tSMOO = 0\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tHIGH = 8\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tHOPR = 10\n')
	myfile.write('\t\t}\n')
	myfile.write('\t\tpv_UTime = {\n')
	myfile.write('\t\t\tINP = "usecTime"\n')
	myfile.write('\t\t\tVAL = 0\n')
	myfile.write('\t\t\tNAME = STMA-USEC-TIME-G\n')
	myfile.write('\t\t\tPINI = "NO"\n')
	myfile.write('\t\t\tDTYP = "MARTe-translator"\n')
	myfile.write('\t\t\tDESC = "MARTe Absolute Time"\n')
	myfile.write('\t\t\tSYNC = excasIoSync\n')
	myfile.write('\t\t\tLOPR = 0\n')
	myfile.write('\t\t\tEGU = "us"\n')
	myfile.write('\t\t\tSCAN = "Passive"\n')
	myfile.write('\t\t\tTYPE = aitEnumInt32\n')
	myfile.write('\t\t}\n')
	myfile.write('\t}\n')
	myfile.write('}\n')
	myfile.close()
	
	pvs[1].setValue(1)
