#CREATES A LAST.CFG (NAMED LAST.CFG) FOR MARTE BASED IN CONFIGURATION MENU (NEWCONFIG.CFG)
#float(mylist[].strip('\n'))
#mylist[].strip('\n')
from decimal import Decimal

filename = "/home/pricardofc/CSS-Workspaces/sys-mng-opi/CSS/cfg-files/newconfig.cfg"
file = open(filename, 'r')
lines = file.readlines()
mylist = []
i = 0
for line in lines:
    #mylist.insert(i, line)
    mylist.insert(i, line.split('\t')[1])
    i = i+1
file.close()
filename3 = "/home/pricardofc/CSS-Workspaces/sys-mng-opi/CSS/cfg-files/last.cfg"
myfile = open(filename3, 'w')
myfile.write('LoggerAddress = ')
myfile.write('"localhost"')
myfile.write('\nLoggerPort = ')
myfile.write('32767')
myfile.write('\nDefaultCPUs = ')
myfile.write('2')
myfile.write('\n+OBJBROWSE = ')
myfile.write('{')
myfile.write('\n\tClass = ')
myfile.write('HttpClassListResource')
myfile.write('\n\tFake = ')
myfile.write('1')
myfile.write('\n}\n')
myfile.write('+THRBROWSE = ')
myfile.write('{')
myfile.write('\n\tClass = ')
myfile.write('HttpThreadListResource\n}\n')
myfile.write('+BROWSE = ')
myfile.write('{')
myfile.write('\n\tTitle = ')
myfile.write('"Http GCRC Browser"')
myfile.write('\n\tClass = ')
myfile.write('HttpGCRCBrowser')
myfile.write('\n\tAddReference = ')
myfile.write('{StateMachine MARTe OBJBROWSE THRBROWSE HTTPCFGUploader HTTPSignalServer MATLABSignalServer AdvancedConfiguration DischargeConfigurator}\n}\n')
myfile.write('+HTTPSERVER = ')
myfile.write('{')
myfile.write('\n\tClass = ')
myfile.write('HttpService')
myfile.write('\n\tPort = ')
myfile.write('8085')
myfile.write('\n\tVerboseLevel = ')
myfile.write('10')
myfile.write('\n\tRoot = ')
myfile.write('BROWSE\n}\n')
myfile.write('+HTTPCFGUploader = ')
myfile.write('{')
myfile.write('\n\tClass = ')
myfile.write('CFGUploader\n}\n')
myfile.write('+TCPMessageHandler = ')
myfile.write('{')
myfile.write('\n\tClass = ')
myfile.write('TCPMessageHandler')
myfile.write('\n\tServerPort = ')
myfile.write('9090')
myfile.write('\n}\n')
myfile.write('+TCPConfigurationHandler = ')
myfile.write('{')
myfile.write('\n\tClass = ')
myfile.write('TCPConfigurationHandler')
myfile.write('\n\tServerPort = ')
myfile.write('10010')
myfile.write('\n\tMARTeLocation = ')
myfile.write('MARTe\n}\n')
myfile.write('+HTTPSignalServer = ')
myfile.write('{')
myfile.write('\n\tClass = ')
myfile.write('SignalServer\n}\n')
myfile.write('+MATLABSupport =\n{')
myfile.write('\n\tClass = ')
myfile.write('MATLABHandler\n}\n')
myfile.write('+StateMachine = ')
myfile.write('{')
myfile.write('\n\tClass = ')
myfile.write('StateMachine')
myfile.write('\n\tVerboseLevel = ')
myfile.write('10')
myfile.write('\n\t+INITIAL = ')
myfile.write('{')
myfile.write('\n\t\tClass = ')
myfile.write('StateMachineState')
myfile.write('\n\t\tStateCode = ')
myfile.write('0x0')
myfile.write('\n\t\t+START = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('StateMachineEvent')
myfile.write('\n\t\t\tNextState = ')
myfile.write('IDLE')
myfile.write('\n\t\t\tValue = ')
myfile.write('START')
myfile.write('\n\t\t\t+STARTALL = ')
myfile.write('{')
myfile.write('\n\t\t\t\tClass = ')
myfile.write('MessageDeliveryRequest')
myfile.write('\n\t\t\t\tSender = ')
myfile.write('StateMachine')
myfile.write('\n\t\t\t\tDestinations = ')
myfile.write('"HTTPSERVER MARTe"')
myfile.write('\n\t\t\t\tMsecTimeOut = ')
myfile.write('1000')
myfile.write('\n\t\t\t\tFlags = ')
myfile.write('NoReply')
myfile.write('\n\t\t\t\tMessage = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tClass = ')
myfile.write('Message')
myfile.write('\n\t\t\t\t\tContent = ')
myfile.write('START')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')
myfile.write('\n\t}\n')
myfile.write('\t+IDLE = ')
myfile.write('{')
myfile.write('\n\t\tClass = ')
myfile.write('StateMachineState')
myfile.write('\n\t\tStateCode = ')
myfile.write('0x500')
myfile.write('\n\t\t+PULSE_SETUP_COMPLETED = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('StateMachineEvent')
myfile.write('\n\t\t\tCode = ')
myfile.write('0x701')
myfile.write('\n\t\t\tNextState = ')
myfile.write('WAITING_FOR_PRE')
myfile.write('\n\t\t\t+NOTIFY = ')
myfile.write('{')
myfile.write('\n\t\t\t\tClass = ')
myfile.write('MessageEnvelope')
myfile.write('\n\t\t\t\tSender = ')
myfile.write('StateMachine')
myfile.write('\n\t\t\t\tDestination = ')
myfile.write('MARTe')
myfile.write('\n\t\t\t\t+MESSAGE = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tClass = ')
myfile.write('Message')
myfile.write('\n\t\t\t\t\tContent = ')
myfile.write('PREPULSECHECK')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\t+UPDATE_HTTP_SIGNAL_SERVER = ')
myfile.write('{')
myfile.write('\n\t\t\t\tClass = ')
myfile.write('MessageEnvelope')
myfile.write('\n\t\t\t\tDestination = ')
myfile.write('HTTPSignalServer')
myfile.write('\n\t\t\t\t+MESSAGE = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tClass = ')
myfile.write('Message')
myfile.write('\n\t\t\t\t\tContent = ')
myfile.write('AUTODETECT')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')
myfile.write('\n\t\t+INHIBIT = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('StateMachineEvent')
myfile.write('\n\t\t\tCode = ')
myfile.write('0x704')
myfile.write('\n\t\t\tNextState = ')
myfile.write('INHIBIT')
myfile.write('\n\t\t}')
myfile.write('\n\t\t+ACTIVATE = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('StateMachineEvent')
myfile.write('\n\t\t\tCode = ')
myfile.write('0x705')
myfile.write('\n\t\t\tNextState = ')
myfile.write('SAMESTATE')
myfile.write('\n\t\t}')
myfile.write('\n\t\t+STOP = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('StateMachineEvent')
myfile.write('\n\t\t\tNextState = ')
myfile.write('IDLE')
myfile.write('\n\t\t\tValue = ')
myfile.write('STOP')
myfile.write('\n\t\t\t+STOPALL = ')
myfile.write('{')
myfile.write('\n\t\t\t\tClass = ')
myfile.write('MessageDeliveryRequest')
myfile.write('\n\t\t\t\tSender = ')
myfile.write('StateMachine')
myfile.write('\n\t\t\t\tDestinations = ')
myfile.write('"HTTPSERVER MARTe"')
myfile.write('\n\t\t\t\tMsecTimeOut = ')
myfile.write('1000')
myfile.write('\n\t\t\t\tFlags = ')
myfile.write('NoReply')
myfile.write('\n\t\t\t\tMessage = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tClass = ')
myfile.write('Message')
myfile.write('\n\t\t\t\t\tContent = ')
myfile.write('STOP')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')
myfile.write('\n\t}\n')
myfile.write('\t+WAITING_FOR_PRE = ')
myfile.write('{')
myfile.write('\n\t\tClass = ')
myfile.write('StateMachineState')
myfile.write('\n\t\tStateCode = ')
myfile.write('0x504')
myfile.write('\n\t\t+PRE = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('StateMachineEvent')
myfile.write('\n\t\t\tCode = ')
myfile.write('0x708')
myfile.write('\n\t\t\tNextState = ')
myfile.write('PULSING')
myfile.write('\n\t\t\t+NOTIFY = ')
myfile.write('{')
myfile.write('\n\t\t\t\tClass = ')
myfile.write('MessageEnvelope')
myfile.write('\n\t\t\t\tSender = ')
myfile.write('StateMachine')
myfile.write('\n\t\t\t\tDestination = ')
myfile.write('MARTe')
myfile.write('\n\t\t\t\t+MESSAGE = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tClass = ')
myfile.write('Message')
myfile.write('\n\t\t\t\t\tContent = ')
myfile.write('PULSESTART')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')
myfile.write('\n\t\t+COLLECTION_COMPLETED = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('StateMachineEvent')
myfile.write('\n\t\t\tCode = ')
myfile.write('0x703')
myfile.write('\n\t\t\tNextState = ')
myfile.write('COMM_ERROR')
myfile.write('\n\t\t}')
myfile.write('\n\t}\n')
myfile.write('\t+PULSING = ')
myfile.write('{')
myfile.write('\n\t\tClass = ')
myfile.write('StateMachineState')
myfile.write('\n\t\tStateCode = ')
myfile.write('0x505')
myfile.write('\n\t\t+EJP = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('StateMachineEvent')
myfile.write('\n\t\t\tCode = ')
myfile.write('0x709')
myfile.write('\n\t\t\tNextState = ')
myfile.write('POST_PULSE')
myfile.write('\n\t\t\t+NOTIFY = ')
myfile.write('{')
myfile.write('\n\t\t\t\tClass = ')
myfile.write('MessageEnvelope')
myfile.write('\n\t\t\t\tSender = ')
myfile.write('StateMachine')
myfile.write('\n\t\t\t\tDestination = ')
myfile.write('MARTe')
myfile.write('\n\t\t\t\t+MESSAGE = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tClass = ')
myfile.write('Message')
myfile.write('\n\t\t\t\t\tContent = ')
myfile.write('PULSESTOP')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')
myfile.write('\n\t}\n')
myfile.write('\t+POST_PULSE = ')
myfile.write('{')
myfile.write('\n\t\tClass = ')
myfile.write('StateMachineState')
myfile.write('\n\t\tStateCode = ')
myfile.write('0x507')
myfile.write('\n\t\t+COLLECTION_COMPLETED = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('StateMachineEvent')
myfile.write('\n\t\t\tCode = ')
myfile.write('0x703')
myfile.write('\n\t\t\tNextState = ')
myfile.write('IDLE')
myfile.write('\n\t\t\t+NOTIFY = ')
myfile.write('{')
myfile.write('\n\t\t\t\tClass = ')
myfile.write('MessageEnvelope')
myfile.write('\n\t\t\t\tSender = ')
myfile.write('StateMachine')
myfile.write('\n\t\t\t\tDestination = ')
myfile.write('MARTe')
myfile.write('\n\t\t\t\t+MESSAGE = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tClass = ')
myfile.write('Message')
myfile.write('\n\t\t\t\t\tContent = ')
myfile.write('COLLECTIONCOMPLETED')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')
myfile.write('\n\t}\n')
myfile.write('\t+INHIBIT = ')
myfile.write('{')
myfile.write('\n\t\tClass = ')
myfile.write('StateMachineState')
myfile.write('\n\t\tStateCode = ')
myfile.write('0x508')
myfile.write('\n\t\t+ACTIVATE = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('StateMachineEvent')
myfile.write('\n\t\t\tCode = ')
myfile.write('0x705')
myfile.write('\n\t\t\tNextState = ')
myfile.write('IDLE')
myfile.write('\n\t\t}')
myfile.write('\n\t}\n')
myfile.write('\t+ERROR = ')
myfile.write('{')
myfile.write('\n\t\tClass = ')
myfile.write('StateMachineState')
myfile.write('\n\t\tStateCode = ')
myfile.write('0x601')
myfile.write('\n\t\t+ACTIVATE = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('StateMachineEvent')
myfile.write('\n\t\t\tCode = ')
myfile.write('0x705')
myfile.write('\n\t\t\tNextState = ')
myfile.write('INIT')
myfile.write('\n\t\t}')
myfile.write('\n\t\t+COLLECTION_COMPLETED = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('StateMachineEvent')
myfile.write('\n\t\t\tCode = ')
myfile.write('0x703')
myfile.write('\n\t\t\tNextState = ')
myfile.write('INIT')
myfile.write('\n\t\t}')
myfile.write('\n\t}\n')
myfile.write('\t+UNRECOVERABLE = ')
myfile.write('{')
myfile.write('\n\t\tClass = ')
myfile.write('StateMachineState')
myfile.write('\n\t\tStateCode = ')
myfile.write('0x601')
myfile.write('\n\t\t+DEFAULT = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('StateMachineEvent')
myfile.write('\n\t\t\tUserCode = ')
myfile.write('0')
myfile.write('\n\t\t\tNextState = ')
myfile.write('UNRECOVERABLE')
myfile.write('\n\t\t}')
myfile.write('\n\t}\n')
myfile.write('\t+COMM_ERROR = ')
myfile.write('{')
myfile.write('\n\t\tStateCode = ')
myfile.write('0x601')
myfile.write('\n\t\tClass = ')
myfile.write('StateMachineState')
myfile.write('\n\t\t+ABORT = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('StateMachineEvent')
myfile.write('\n\t\t\tCode = ')
myfile.write('0x702')
myfile.write('\n\t\t\tNextState = ')
myfile.write('SAMESTATE')
myfile.write('\n\t\t}')
myfile.write('\n\t}\n')
myfile.write('\t+DEFAULT = ')
myfile.write('{')
myfile.write('\n\t\tClass = ')
myfile.write('StateMachineState')
myfile.write('\n\t\tStateCode = ')
myfile.write('0x601')
myfile.write('\n\t\t+ABORT = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('StateMachineEvent')
myfile.write('\n\t\t\tCode = ')
myfile.write('0x702')
myfile.write('\n\t\t\tNextState = ')
myfile.write('IDLE')
myfile.write('\n\t\t}')
myfile.write('\n\t\t+PRE = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('StateMachineEvent')
myfile.write('\n\t\t\tCode = ')
myfile.write('0x708')
myfile.write('\n\t\t\tNextState = ')
myfile.write('SAMESTATE')
myfile.write('\n\t\t}')
myfile.write('\n\t\t+EJP = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('StateMachineEvent')
myfile.write('\n\t\t\tCode = ')
myfile.write('0x709')
myfile.write('\n\t\t\tNextState = ')
myfile.write('SAMESTATE')
myfile.write('\n\t\t}')
myfile.write('\n\t}')
myfile.write('\n}\n')
myfile.write('+MARTeMenu = ')
myfile.write('{')
myfile.write('\n\tClass = ')
myfile.write('MarteSupLib::MARTeMenu')
myfile.write('\n\tTitle = ')
myfile.write('"MARTe Menu"')
myfile.write('\n\t+MenuA = ')
myfile.write('{')
myfile.write('\n\t\tClass = ')
myfile.write('MenuContainer')
myfile.write('\n\t\tTitle = ')
myfile.write('"CODAS Interface"')
myfile.write('\n\t\t+ABORT = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('SendMessageMenuEntry')
myfile.write('\n\t\t\tTitle = ')
myfile.write('Abort')
myfile.write('\n\t\t\tEnvelope = ')
myfile.write('{')
myfile.write('\n\t\t\t\tClass = ')
myfile.write('MessageEnvelope')
myfile.write('\n\t\t\t\tSender = ')
myfile.write('MARTeMenu')
myfile.write('\n\t\t\t\tDestination = ')
myfile.write('StateMachine')
myfile.write('\n\t\t\t\t+Message = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tClass = ')
myfile.write('Message')
myfile.write('\n\t\t\t\t\tCode = ')
myfile.write('0x702')
myfile.write('\n\t\t\t\t\tContent = ')
myfile.write('ABORT')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')
myfile.write('\n\t\t+INHIBIT = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('SendMessageMenuEntry')
myfile.write('\n\t\t\tTitle = ')
myfile.write('Inhibit')
myfile.write('\n\t\t\tEnvelope = ')
myfile.write('{')
myfile.write('\n\t\t\t\tClass = ')
myfile.write('MessageEnvelope')
myfile.write('\n\t\t\t\tSender = ')
myfile.write('MARTeMenu')
myfile.write('\n\t\t\t\tDestination = ')
myfile.write('StateMachine')
myfile.write('\n\t\t\t\t+Message = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tClass = ')
myfile.write('Message')
myfile.write('\n\t\t\t\t\tCode = ')
myfile.write('0x704')
myfile.write('\n\t\t\t\t\tContent = ')
myfile.write('Inhibit')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')
myfile.write('\n\t\t+ACTIVATE = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('SendMessageMenuEntry')
myfile.write('\n\t\t\tTitle = ')
myfile.write('Activate')
myfile.write('\n\t\t\tEnvelope = ')
myfile.write('{')
myfile.write('\n\t\t\t\tClass = ')
myfile.write('MessageEnvelope')
myfile.write('\n\t\t\t\tSender = ')
myfile.write('MARTeMenu')
myfile.write('\n\t\t\t\tDestination = ')
myfile.write('StateMachine')
myfile.write('\n\t\t\t\t+Message = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tClass = ')
myfile.write('Message')
myfile.write('\n\t\t\t\t\tCode = ')
myfile.write('0x705')
myfile.write('\n\t\t\t\t\tContent = ')
myfile.write('Activate')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')
myfile.write('\n\t\t+PULSESETUPCOMPLETE = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('SendMessageMenuEntry')
myfile.write('\n\t\t\tTitle = ')
myfile.write('"Pulse Setup Complete"')
myfile.write('\n\t\t\tEnvelope = ')
myfile.write('{')
myfile.write('\n\t\t\t\tClass = ')
myfile.write('MessageEnvelope')
myfile.write('\n\t\t\t\tSender = ')
myfile.write('MARTeMenu')
myfile.write('\n\t\t\t\tDestination = ')
myfile.write('StateMachine')
myfile.write('\n\t\t\t\t+Message = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tClass = ')
myfile.write('Message')
myfile.write('\n\t\t\t\t\tCode = ')
myfile.write('0x701')
myfile.write('\n\t\t\t\t\tContent = ')
myfile.write('WAITING_FOR_PRE')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')
myfile.write('\n\t\t+PRE = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('SendMessageMenuEntry')
myfile.write('\n\t\t\tTitle = ')
myfile.write('"Pulse Start"')
myfile.write('\n\t\t\tEnvelope = ')
myfile.write('{')
myfile.write('\n\t\t\t\tClass = ')
myfile.write('MessageEnvelope')
myfile.write('\n\t\t\t\tSender = ')
myfile.write('MARTeMenu')
myfile.write('\n\t\t\t\tDestination = ')
myfile.write('StateMachine')
myfile.write('\n\t\t\t\t+Message = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tClass = ')
myfile.write('Message')
myfile.write('\n\t\t\t\t\tCode = ')
myfile.write('0x708')
myfile.write('\n\t\t\t\t\tContent = ')
myfile.write('PRE')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')
myfile.write('\n\t\t+EJP = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('SendMessageMenuEntry')
myfile.write('\n\t\t\tTitle = ')
myfile.write('"Pulse End"')
myfile.write('\n\t\t\tEnvelope = ')
myfile.write('{')
myfile.write('\n\t\t\t\tClass = ')
myfile.write('MessageEnvelope')
myfile.write('\n\t\t\t\tSender = ')
myfile.write('MARTeMenu')
myfile.write('\n\t\t\t\tDestination = ')
myfile.write('StateMachine')
myfile.write('\n\t\t\t\t+Message = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tClass = ')
myfile.write('Message')
myfile.write('\n\t\t\t\t\tCode = ')
myfile.write('0x709')
myfile.write('\n\t\t\t\t\tContent = ')
myfile.write('EJP')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')
myfile.write('\n\t\t+COLLECTIONCOMPLETED = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('SendMessageMenuEntry')
myfile.write('\n\t\t\tTitle = ')
myfile.write('"Collection Completed"')
myfile.write('\n\t\t\tEnvelope = ')
myfile.write('{')
myfile.write('\n\t\t\t\tClass = ')
myfile.write('MessageEnvelope')
myfile.write('\n\t\t\t\tSender = ')
myfile.write('MARTeMenu')
myfile.write('\n\t\t\t\tDestination = ')
myfile.write('StateMachine')
myfile.write('\n\t\t\t\t+Message = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tClass = ')
myfile.write('Message')
myfile.write('\n\t\t\t\t\tCode = ')
myfile.write('0x703')
myfile.write('\n\t\t\t\t\tContent = ')
myfile.write('POSTPULSE')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')
myfile.write('\n\t}')
myfile.write('\n\tAddReference = ')
myfile.write('MARTe.MARTe')
myfile.write('\n}\n')

#ATCA-ADC BOARD
myfile.write('+ATCAAdc = ')
myfile.write('{')
myfile.write('\n\tClass = ')
myfile.write('ATCAadcDrv')
myfile.write('\n\tNumberOfInputs = ')
myfile.write('')
myfile.write('84')
myfile.write('')
myfile.write('\n\tNumberOfOutputs = ')
myfile.write('')
myfile.write('2')
myfile.write('')
myfile.write('\n\tSynchronizationMethod = ')
myfile.write('Synchronizing')
myfile.write('\n\tUseSoftwareTrigger = ')
myfile.write('')
myfile.write('0')
myfile.write('')
myfile.write('\n\tModules = ')
myfile.write('{')
myfile.write('\n\t\tBoard0 = ')
myfile.write('{')
myfile.write('\n\t\t\tIsMaster = ')
myfile.write('')
myfile.write('1')
myfile.write('')
myfile.write('\n\t\t\tNumberOfAnalogueInput = ')
myfile.write('')
myfile.write('32')
myfile.write('')
myfile.write('\n\t\t\tNumberOfDigitalInput = ')
myfile.write('')
myfile.write('9')
myfile.write('')
myfile.write('\n\t\t\tNumberOfAnalogueOutput = ')
myfile.write('')
myfile.write('2')
myfile.write('')
myfile.write('\n\t\t\tNumberOfDigitalOutput = ')
myfile.write('')
myfile.write('0')
myfile.write('\n\t\t\tUseSoftwareTrigger = ')
myfile.write('')
myfile.write('0')
myfile.write('')
myfile.write('\n\t\t\tSoftwareTriggerUsecCycleTime = ')
myfile.write('')
myfile.write('100000')
myfile.write('')
myfile.write('\n\t\t\tDataArrivalUsecSleep = ')
myfile.write('')
myfile.write('0')
myfile.write('')
myfile.write('\n\t\t\tDatagramMonitoringFastSleep = ')
myfile.write('')
myfile.write('1')
myfile.write('')
myfile.write('\n\t\t\tDataAcquisitionUsecTimeOut = ')
myfile.write('')
myfile.write('1000')
myfile.write('')
myfile.write('\n\t\t\tModuleIdentifier = ')
myfile.write('')
myfile.write('3')
myfile.write('\n\t\t}')
myfile.write('\n\t\tBoard1 = ')
myfile.write('{')
myfile.write('\n\t\t\tIsMaster = ')
myfile.write('')
myfile.write('0')
myfile.write('')
myfile.write('\n\t\t\tNumberOfAnalogueInput = ')
myfile.write('')
myfile.write('32')
myfile.write('')
myfile.write('\n\t\t\tNumberOfDigitalInput = ')
myfile.write('')
myfile.write('9')
myfile.write('')
myfile.write('\n\t\t\tNumberOfAnalogueOutput = ')
myfile.write('')
myfile.write('0')
myfile.write('')
myfile.write('\n\t\t\tNumberOfDigitalOutput = ')
myfile.write('')
myfile.write('0')
myfile.write('')
myfile.write('\n\t\t\tUseSoftwareTrigger = ')
myfile.write('')
myfile.write('0')
myfile.write('')
myfile.write('\n\t\t\tSoftwareTriggerUsecCycleTime = ')
myfile.write('')
myfile.write('100000')
myfile.write('')
myfile.write('\n\t\t\tDataArrivalUsecSleep = ')
myfile.write('')
myfile.write('0')
myfile.write('')
myfile.write('\n\t\t\tDatagramMonitoringFastSleep = ')
myfile.write('')
myfile.write('1')
myfile.write('')
myfile.write('\n\t\t\tDataAcquisitionUsecTimeOut = ')
myfile.write('')
myfile.write('1000')
myfile.write('')
myfile.write('\n\t\t\tModuleIdentifier = ')
myfile.write('')
myfile.write('9')
myfile.write('')
myfile.write('\n\t\t}')
myfile.write('\n\t}')
myfile.write('\n}\n')


myfile.write('+MARTe = ')
myfile.write('{')
myfile.write('\n\tClass = ')
myfile.write('MARTeContainer')
myfile.write('\n\tStateMachineName = ')
myfile.write('StateMachine')
myfile.write('\n\tLevel1Name = ')
myfile.write('LEVEL1')
myfile.write('\n\tMenuContainerName = ')
myfile.write('MARTe')
myfile.write('\n\t+MARTe = ')
myfile.write('{')
myfile.write('\n\t\tClass = ')
myfile.write('MenuContainer')
myfile.write('\n\t}')
myfile.write('\n\t+ExternalTimeTriggeringService = ')
myfile.write('{')
myfile.write('\n\t\tClass = ')
myfile.write('DataPollingDrivenTTS')
myfile.write('')
myfile.write('\n\t\tTsOnlineUsecPeriod = ')
myfile.write('')
myfile.write('100')
myfile.write('')
myfile.write('\n\t\tTsOnlineUsecPhase = ')
myfile.write('')
myfile.write('0')
myfile.write('')
myfile.write('\n\t\tTsOfflineUsecPeriod = ')
myfile.write('')
myfile.write('100')
myfile.write('')
myfile.write('\n\t\tTsOfflineUsecPhase = ')
myfile.write('')
myfile.write('0')
myfile.write('')
myfile.write('\n\t\tTimeModule = ')
myfile.write('{')
myfile.write('\n\t\t\t')
myfile.write('BoardName = ')
myfile.write('')
myfile.write('ATCAAdc')
myfile.write('')
myfile.write('\n\t\t}')
myfile.write('\n\t}')
myfile.write('\n\t+FatalErrorMessage = ')
myfile.write('{')
myfile.write('\n\t\tClass = ')
myfile.write('MessageDeliveryRequest')
myfile.write('\n\t\tDestinations = ')
myfile.write('StateMachine')
myfile.write('')
myfile.write('\n\t\tMsecTimeOut = ')
myfile.write('')
myfile.write('1000')
myfile.write('')
myfile.write('\n\t\tFlags = ')
myfile.write('NoReply')
myfile.write('\n\t\tMessage = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('Message')
myfile.write('\n\t\t\tContent = ')
myfile.write('UNRECOVERABLE')
myfile.write('\n\t\t}')
myfile.write('\n\t}')
myfile.write('\n\t+SafetyErrorMessage = ')
myfile.write('{')
myfile.write('\n\t\tClass = ')
myfile.write('MessageDeliveryRequest')
myfile.write('\n\t\tDestinations = ')
myfile.write('MARTe')
myfile.write('')
myfile.write('\n\t\tMsecTimeOut = ')
myfile.write('')
myfile.write('1000')
myfile.write('')
myfile.write('\n\t\tFlags = ')
myfile.write('NoReply')
myfile.write('\n\t\tMessage = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('Message')
myfile.write('\n\t\t\tContent = ')
myfile.write('ERROR')
myfile.write('\n\t\t}')
myfile.write('\n\t}')
myfile.write('\n\t+RealTimeThread = ')
myfile.write('{')
myfile.write('\n\t\tClass = ')
myfile.write('RealTimeThread')
myfile.write('')
myfile.write('\n\t\tThreadPriority = ')
myfile.write('')
myfile.write(mylist[223].strip('\n'))
myfile.write('')
myfile.write('\n\t\tRunOnCPU = ')
myfile.write('')
myfile.write(mylist[224].strip('\n'))
myfile.write('')
myfile.write('\n\t\tRTStatusChangeMsecTimeout = ')
myfile.write('')
myfile.write('1000')
myfile.write('')
myfile.write('\n\t\tSMStatusChangeMsecTimeout = ')
myfile.write('')
myfile.write('1000')
myfile.write('')
myfile.write('\n\t\tOfflineSemaphoreTimeout = ')
myfile.write('')
myfile.write('100')
myfile.write('')
myfile.write('\n\t\tTriggeringServiceName = ')
myfile.write('MARTe.ExternalTimeTriggeringService')
myfile.write('')
myfile.write('\n\t\t+DDB = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('DDB')
myfile.write('\n\t\t\tFake = ')
myfile.write('1')
myfile.write('\n\t\t}')

#ATCA-DAC BOARD
myfile.write('\n\t\t+ATCADac = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('IOGAMs::OutputGAM')
myfile.write('')
myfile.write('\n\t\t\tBoardName = ')
myfile.write('')
myfile.write('ATCAAdc')
myfile.write('')
myfile.write('\n\t\t\tUsecTimeSignalName = ')
myfile.write('')
myfile.write('usecTime')
myfile.write('')
myfile.write('\n\t\t\tSignals = ')
myfile.write('{')
myfile.write('\n\t\t\t\tSendToToroidal = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('SendToToroidal')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('0.001526')
myfile.write('')
myfile.write('\n\t\t\t\t\tMaxOutputValue = ')
myfile.write('')
myfile.write('100')
myfile.write('')
myfile.write('\n\t\t\t\t\tMinOutputValue = ')
myfile.write('')
myfile.write('-100')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tSendToPuffing = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('SendToPuffing')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('0.001526')
myfile.write('')
myfile.write('\n\t\t\t\t\tMaxOutputValue = ')
myfile.write('')
myfile.write('100')
myfile.write('')
myfile.write('\n\t\t\t\t\tMinOutputValue = ')
myfile.write('')
myfile.write('-100')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')

#ATCA-ADC BOARD
myfile.write('\n\t\t+ATCAAdc = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('IOGAMs::TimeInputGAM')
myfile.write('\n\t\t\tTriggeringServiceName = ')
myfile.write('ExternalTimeTriggeringService')
myfile.write('\n\t\t\tBoardName = ')
myfile.write('ATCAAdc')
myfile.write('\n\t\t\tSignals = ')
myfile.write('{')
myfile.write('\n\t\t\t\tpacketNumber = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('packetNumber')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tcycleUsecTime = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('usecTime')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_000 = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_top_0')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.15267707')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-3.4072775E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_001 = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_top_1')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.18273073')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-3.0369213E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_002 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_top_2')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.16319854')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-2.3283064E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_003 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_top_3')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.16340260')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-2.3283064E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_004 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_top_4')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.16674355')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-2.3283064E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_005 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_top_5')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.17944072')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-2.3283064E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_006 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_top_6')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.20362551')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-2.5870073E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_007 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_top_7')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.24197083')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-3.1044087E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_008 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_outer_0')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.043160510')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-3.5453757E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_009 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_outer_1')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.0086336515')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-2.6440089E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_010 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_outer_2')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0071577080')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-2.4374458E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_011 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_outer_3')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.070312243')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-2.3283064E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_012 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_outer_4')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.051848319')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-2.3283064E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_013 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_outer_5')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.071824896')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-2.5999422E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_014 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_outer_6')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.15702936')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-2.6895955E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_015 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_outer_7')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.17259844')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-2.9999334E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_016 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_bottom_0')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.33819630')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-4.3529208E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_017 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_bottom_1')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.23471839')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-3.3372391E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_018 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_bottom_2')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.18317655')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-2.9446229E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_019 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_bottom_3')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.15194744')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-2.4418823E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_020 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_bottom_4')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.14320473')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-2.3283064E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_021 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_bottom_5')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.18502216')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-2.6346625E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_022 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_bottom_6')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.17325912')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-3.1286618E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_023 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_bottom_7')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.27911253')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-4.5507809E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_024 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_H_alpha')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('2.3283E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_025 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_v_primary')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('2.3283E-7')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_026 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_sine_probe')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('2.3283E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_027 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_cosine_probe')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('2.3283E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_028 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_main_rogowski')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-1.3987E-5')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_029 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_horizontal_current')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('2.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('2.1372E-7')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_030 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_vertical_current')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-6.13')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-2.8422E-7')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_031 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_primary_current')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-2.8')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('3.1334E-7')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tSignalD0 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('DIGITAL0')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('int32')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tSignalD1 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('DIGITAL1')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('int32')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tSignalD2 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('DIGITAL2')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('int32')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tSignalD3 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('DIGITAL3')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('int32')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tSignalD4 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('DIGITAL4')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('int32')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tSignalD5 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('DIGITAL5')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('int32')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tSignalD6 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('DIGITAL6')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('int32')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tSignalD7 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('DIGITAL7')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('int32')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tSignalD8 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('DIGITAL9')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('int32')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_032 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_interferometry_sine')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.2360')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('7.5509E-09')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_033 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('FREE_CHANNEL_33')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_034 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_interferometry_cosine')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('-0.0344')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('8.7894E-09')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_035 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('FREE_CHANNEL_35')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_036 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('FREE_CHANNEL_36')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_037 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('FREE_CHANNEL_37')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_038 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('FREE_CHANNEL_38')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_039 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_vloop')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-4.6566E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_040 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('FREE_CHANNEL_40')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_041 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('FREE_CHANNEL_41')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_042 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('FREE_CHANNEL_42')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_043 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('FREE_CHANNEL_43')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_044 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('FREE_CHANNEL_44')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_045 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('FREE_CHANNEL_45')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_046 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('FREE_CHANNEL_46')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_047 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('FREE_CHANNEL_47')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_048 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_0')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-4.6566E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_049 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_1')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-4.6566E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_050 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_2')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('4.6566E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_051 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_3')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-4.6566E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_052 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_4')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('4.6566E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_053 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_5')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('4.6566E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_054 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_6')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('4.6566E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_055 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_7')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('4.6566E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_056 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_8')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('4.6566E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_057 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_9')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('4.6566E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_058 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_10')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('-4.6566E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_059 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_11')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('4.6566E-9')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_060 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_electric_outer_near')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.832')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('2.3283E-7')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_061 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_electric_top_near')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('2.962')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('2.3283E-7')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_062 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_electric_inner_near')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('3.841')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('2.3283E-7')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_063 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_electric_bottom_near')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.507')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('2.3283E-7')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tSignalD9 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('DIGITAL9')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tSignalD10 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('DIGITAL10')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tSignalD11 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('DIGITAL11')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tSignalD12 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('DIGITAL12')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tSignalD13 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('DIGITAL13')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tSignalD14 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('DIGITAL14')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tSignalD15 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('DIGITAL15')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tSignalD16 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('DIGITAL16')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tSignalD17 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('DIGITAL17')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')

#DATA COLLECTION
myfile.write('\n\t\t+DataCollection = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('CollectionGAMs::DataCollectionGAM')
myfile.write('\n\t\t\tUsecTimeSignalName = ')
myfile.write('usecTime')
myfile.write('\n\t\t\tEventTrigger = ')
myfile.write('{')
myfile.write('\n\t\t\t\tTimeWindow0 = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\t\tNOfSamples = ')
myfile.write('')
myfile.write('6610')
myfile.write('')
myfile.write('\n\t\t\t\t\tUsecPeriod = ')
myfile.write('')
myfile.write('100')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('')
myfile.write('\n\t\t\tNOfAcquisitionSamples = ')
myfile.write('')
myfile.write('6610')
myfile.write('')
myfile.write('\n\t\t\tSignals = ')
myfile.write('{')
myfile.write('\n\t\t\t\ttimeBase = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('usecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('int32')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('TimeBase')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0e-06')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_000 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_top_0')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_top_0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_001 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_top_1')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_top_1')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('0.0')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_002 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_top_2')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_top_2')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_003 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_top_3')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_top_3')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_004 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_top_4')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_top_4')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_005 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_top_5')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_top_5')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_006 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_top_6')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_top_6')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_007 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_top_7')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_top_7')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_008 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_outer_0')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_outer_0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_009 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_outer_1')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_outer_1')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_010 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_outer_2')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_outer_2')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_011 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_outer_3')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_outer_3')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_012 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_outer_4')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_outer_4')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_013 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_outer_5')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_outer_5')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_014 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_outer_6')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_outer_6')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_015 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_outer_7')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_outer_7')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_016 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_bottom_0')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_bottom_0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_017 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_bottom_1')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_bottom_1')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_018 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_bottom_2')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_bottom_2')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_019 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_bottom_3')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_bottom_3')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_020 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_bottom_4')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_bottom_4')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_021 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_bottom_5')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_bottom_5')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_022 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_bottom_6')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_bottom_6')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_023 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_tomography_bottom_7')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_tomography_bottom_7')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_024 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_electric_top_near')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_electric_top_near')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_025 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_electric_outer_near')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_electric_outer_near')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_026 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_electric_bottom_near')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_electric_bottom_near')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_027 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_electric_inner_near')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_electric_inner_near')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_028 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_0')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_magnetic_0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_029 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_1')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_magnetic_1')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_030 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_2')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_magnetic_2')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_031 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_3')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_magnetic_3')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_032 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_4')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_magnetic_4')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_033 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_5')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_magnetic_5')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_034 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_6')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_magnetic_6')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_035 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_7')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_magnetic_7')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_036 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_8')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_magnetic_8')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_037 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_9')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_magnetic_9')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_038 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_10')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_magnetic_10')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_039 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_magnetic_11')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_magnetic_11')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_040 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_primary_current')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_primary_current')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_041 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_vertical_current')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_vertical_current')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_042 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_horizontal_current')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_horizontal_current')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_043 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_vloop')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_vloop')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_044 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_interferometry_sine')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_interferometry_sine')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_045 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_interferometry_cosine')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_interferometry_cosine')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_046 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_H_alpha')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_H_alpha')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_047 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_sine_probe')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_sine_probe')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_048 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_cosine_probe')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_cosine_probe')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_049 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_main_rogowski')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_main_rogowski')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_050 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('CycleUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('Cycle_Usec_Time')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_051 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ATCAAdcRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ATCAAdcRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_052 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('DataCollectionRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('DataCollectionRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_053 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('time_windowsRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('time_windowsRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_054 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('tomographyRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('tomographyRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_055 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('electric_probesRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('electric_probesRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_056 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('magnetic_probesRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('magnetic_probesRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_057 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('sine_probeRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('sine_probeRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_058 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('cosine_probeRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('cosine_probeRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_059 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('main_rogowskiRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('main_rogowskiRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_060 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('interferometryRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('interferometryRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_061 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('H_alphaRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('H_alphaRelativeUsecTime')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_062 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('technical_signalsRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('technical_signalsRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_063 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('plasma_parametersRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('plasma_parametersRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_064 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('machine_protectionRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('machine_protectionRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_065 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('waveform_primaryRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('waveform_primaryRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_066 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('waveform_verticalRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('waveform_verticalRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_067 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('waveform_horizontalRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('waveform_horizontalRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_068 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('waveform_toroidalRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('waveform_toroidalRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_069 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('waveform_puffingRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('waveform_puffingRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_070 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('controllerRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('controllerRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_071 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('PSCommunicator_horizontalRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('PSCommunicator_horizontalRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_072 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('PSCommunicator_verticalRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('PSCommunicator_verticalRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_073 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('PSCommunicator_primaryRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('PSCommunicator_primaryRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_074 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('CodacRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('CodacRelativeUsecTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_075 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('DischargeStatus')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('int32')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('DischargeStatus')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_076 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('usecDischargeTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('int32')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('usecDischargeTime')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_077 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('PlasmaDirection')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('int32')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('PlasmaDirection')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_078 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('TomographyR')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('TomographyR')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_079 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('TomographyZ')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('TomographyZ')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_080 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('TomographyIntensity')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('TomographyIntensity')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_081 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ElectricProbesR')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ElectricProbesR')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_082 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ElectricProbesZ')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ElectricProbesZ')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_083 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('MagneticProbesR')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('MagneticProbesR')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_084 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('MagneticProbesZ')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('MagneticProbesZ')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_085 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('MagneticProbesPlasmaCurrent')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('MagneticProbesPlasmaCurrent')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_086 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('SineProbeZ')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('SineProbeZ')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_087 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('CosineProbeR')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('CosineProbeR')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_088 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('RogowskiPlasmaCurrent')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('RogowskiPlasmaCurrent')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_089 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('InterferometryDensity')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('InterferometryDensity')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_090 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('InterferometryR')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('InterferometryR')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_091 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('HorizontalCurrent')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('HorizontalCurrent')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_092 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('VerticalCurrent')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('VerticalCurrent')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_093 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('PrimaryCurrent')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('PrimaryCurrent')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_094 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('IronCoreSaturation')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('IronCoreSaturation')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_095 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('VLoop')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('VLoop')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_096 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('HAlfa')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('HAlfa')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_097 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('InSaturation')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('int32')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('InSaturation')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_098 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('SlowStopBool')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('int32')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('SlowStopBool')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_099 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('HardStopBool')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('int32')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('HardStopBool')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_100 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('PlasmaCurrent')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('PlasmaCurrent')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_101 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('PositionR')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('PositionR')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_102 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('PositionZ')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('PositionZ')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_103 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('Density')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('Density')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_104 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ADC_v_primary')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ADC_v_primary')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_105 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('PrimaryOutputWaveform')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('PrimaryOutputWaveform')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_106 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('VerticalOutputWaveform')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('VerticalOutputWaveform')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_107 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('HorizontalOutputWaveform')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('HorizontalOutputWaveform')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_108 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('ToroidalOutputWaveform')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('ToroidalOutputWaveform')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_109 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('PuffingOutputWaveform')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('PuffingOutputWaveform')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tChannel_110 = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('')
myfile.write('SendToPuffing')
myfile.write('')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('')
myfile.write('float')
myfile.write('')
myfile.write('\n\t\t\t\t\tJPFName = ')
myfile.write('SendToPuffing')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal0 = ')
myfile.write('')
myfile.write('0.0')
myfile.write('')
myfile.write('\n\t\t\t\t\tCal1 = ')
myfile.write('')
myfile.write('1.0')
myfile.write('')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')

#WAVEFORM PRIMARY
myfile.write('\n\t\t+waveform_primary = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('isttokbiblio::WaveformGAM')
myfile.write('\n\t\t\tinput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\tinput_time = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('usecDischargeTime')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tinput_mode = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PrimaryWaveformMode')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tinput_AC_cycle = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PlasmaDirection')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tdischarge_status = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('DischargeStatus')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('')
myfile.write('\n\t\t\twaveform_mode_1_positive = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('4')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 2.500000e+01 2.501000e+01 3.000000e+01}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{1.400000e+02 1.500000e+02 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t\tmax_value = ')
myfile.write('')
myfile.write('3.500000e+02')
myfile.write('')
myfile.write('\n\t\t\t\tmin_value = ')
myfile.write('')
myfile.write('-3.500000e+02')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_mode_1_negative = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('4')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 2.500000e+01 2.501000e+01 3.000000e+01}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{-1.400000e+02 -1.500000e+02 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_mode_2_positive = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('8')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 5.000000e+00 7.000000e+00 1.000000e+01 1.200000e+01 1.500000e+01 2.000000e+01 3.000000e+01}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 6.000000e+01 6.000000e+01 -6.000000e+01 -8.000000e+01 3.000000e+01 1.000000e+02 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t\tmax_value = ')
myfile.write('')
myfile.write('7.000000e+03')
myfile.write('')
myfile.write('\n\t\t\t\tmin_value = ')
myfile.write('')
myfile.write('-7.000000e+03')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_mode_2_negative = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('5')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 5.000000e+00 1.000000e+01 1.500000e+01 3.000000e+01}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{3.000000e+02 3.000000e+02 3.500000e+02 3.500000e+02 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_breakdown = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('10')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 1.000000e+00 1.010000e+00 5.000000e+00 5.010000e+00 7.000000e+00 7.010000e+00 8.000000e+00 8.010000e+00 9.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{-5.000000e+01 -5.000000e+01 -5.000000e+01 -5.000000e+01 1.500000e+02 1.500000e+02 1.500000e+02 1.500000e+02 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_breakdown_negative = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('8')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 1.000000e+00 1.010000e+00 5.000000e+00 5.010000e+00 8.000000e+00 8.010000e+00 9.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{3.000000e+01 3.000000e+01 3.000000e+01 3.000000e+01 -1.500000e+02 -1.500000e+02 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_inversion_positive_to_negative = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('11')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 1.000000e+00 1.010000e+00 3.000000e+00 4.000000e+00 4.010000e+00 5.000000e+00 5.010000e+00 7.000000e+00 7.010000e+00 8.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{1.500000e+02 0.000000e+00 -1.500000e+02 -1.500000e+02 -1.500000e+02 3.000000e+01 3.000000e+01 -1.500000e+02 -1.500000e+02 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_inversion_negative_to_positive = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('11')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 1.000000e+00 1.010000e+00 3.000000e+00 3.990000e+00 4.000000e+00 5.000000e+00 5.010000e+00 7.000000e+00 7.010000e+00 8.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{-1.500000e+02 0.000000e+00 1.500000e+02 1.500000e+02 1.500000e+02 -3.000000e+01 -3.000000e+01 1.500000e+02 1.500000e+02 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\toutput_signals = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\toutput_waveform = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PrimaryOutputWaveform')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')

#WAVEFORM VERTICAL
myfile.write('\n\t\t+waveform_vertical = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('isttokbiblio::WaveformGAM')
myfile.write('\n\t\t\tinput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\tinput_time = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('usecDischargeTime')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tinput_mode = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('VerticalWaveformMode')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tinput_AC_cycle = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PlasmaDirection')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tdischarge_status = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('DischargeStatus')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('')
myfile.write('\n\t\t\twaveform_mode_1_positive = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('4')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 2.500000e+01 2.501000e+01 3.000000e+01}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{-2.000000e+02 -2.000000e+02 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t\tmax_value = ')
myfile.write('')
myfile.write('7.000000e+02')
myfile.write('')
myfile.write('\n\t\t\t\tmin_value = ')
myfile.write('')
myfile.write('-7.000000e+02')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_mode_1_negative = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('6')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 1.999000e+01 2.000000e+01 2.500000e+01 2.501000e+01 3.000000e+01}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{1.000000e+02 1.000000e+02 2.300000e+02 2.300000e+02 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_mode_2_positive = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('3')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 3.000000e+01 3.100000e+01}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{1.500000e+01 1.500000e+01 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t\tmax_value = ')
myfile.write('')
myfile.write('8.000000e+01')
myfile.write('')
myfile.write('\n\t\t\t\tmin_value = ')
myfile.write('')
myfile.write('-8.000000e+01')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_mode_2_negative = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('3')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 3.000000e+01 3.100000e+01}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{2.000000e+01 2.000000e+01 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_breakdown = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('8')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 5.000000e+00 5.010000e+00 7.000000e+00 7.010000e+00 8.000000e+00 8.010000e+00 9.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{-6.000000e+01 -6.000000e+01 -2.000000e+02 -2.000000e+02 -2.000000e+02 -2.000000e+02 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_breakdown_negative = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('6')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 5.000000e+00 5.010000e+00 8.000000e+00 8.010000e+00 9.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{3.000000e+01 3.000000e+01 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_inversion_positive_to_negative = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('6')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 2.000000e+00 5.000000e+00 7.000000e+00 7.010000e+00 8.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{-1.800000e+02 8.000000e+01 8.000000e+01 8.000000e+01 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_inversion_negative_to_positive = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('6')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 2.000000e+00 5.000000e+00 7.000000e+00 7.010000e+00 8.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{-8.000000e+01 -1.800000e+02 -1.800000e+02 -1.800000e+02 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\toutput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\toutput_waveform = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('VerticalOutputWaveform')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')

#WAVEFORM HORIZONTAL
myfile.write('\n\t\t+waveform_horizontal = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('isttokbiblio::WaveformGAM')
myfile.write('\n\t\t\tinput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\tinput_time = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('usecDischargeTime')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tinput_mode = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('HorizontalWaveformMode')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tinput_AC_cycle = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PlasmaDirection')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tdischarge_status = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('DischargeStatus')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('')
myfile.write('\n\t\t\twaveform_mode_1_positive = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('4')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 2.500000e+01 2.501000e+01 3.000000e+01}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{-1.500000e+01 -1.500000e+01 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t\tmax_value = ')
myfile.write('')
myfile.write('2.000000e+02')
myfile.write('')
myfile.write('\n\t\t\t\tmin_value = ')
myfile.write('')
myfile.write('-2.000000e+02')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_mode_1_negative = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('4')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 2.500000e+01 2.501000e+01 3.000000e+01}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{-7.000000e+01 -7.000000e+01 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_mode_2_positive = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('3')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 2.000000e+02 3.000000e+02}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{1.000000e+00 -1.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t\tmax_value = ')
myfile.write('')
myfile.write('8.000000e+01')
myfile.write('')
myfile.write('\n\t\t\t\tmin_value = ')
myfile.write('')
myfile.write('-8.000000e+01')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_mode_2_negative = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('2')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 3.000000e+03}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{2.000000e+00 -2.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_breakdown = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('8')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 5.000000e+00 5.010000e+00 7.000000e+00 7.010000e+00 8.000000e+00 8.010000e+00 9.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{-2.500000e+01 -2.500000e+01 -1.500000e+01 -1.500000e+01 -1.500000e+01 -1.500000e+01 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_breakdown_negative = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('6')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 5.000000e+00 5.010000e+00 8.000000e+00 8.010000e+00 9.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{-2.000000e+01 -2.000000e+01 -6.500000e+01 -6.500000e+01 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_inversion_positive_to_negative = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('6')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 1.000000e+00 5.000000e+00 7.000000e+00 7.010000e+00 8.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{-3.000000e+01 -6.000000e+01 -6.000000e+01 -6.000000e+01 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_inversion_negative_to_positive = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('5')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 5.000000e+00 7.000000e+00 7.010000e+00 8.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{-3.000000e+01 -3.000000e+01 -3.000000e+01 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\toutput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\toutput_waveform = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('HorizontalOutputWaveform')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')

#WAVEFORM TOROIDAL
myfile.write('\n\t\t+waveform_toroidal = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('isttokbiblio::WaveformGAM')
myfile.write('\n\t\t\tinput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\tinput_time = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('usecTime')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tinput_mode = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('ToroidalWaveformMode')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tinput_AC_cycle = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PlasmaDirection')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tdischarge_status = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('ToroidalStatus')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('')
myfile.write('\n\t\t\twaveform_mode_1_positive = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('6')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 5.000000e+00 1.000000e+01 1.500000e+01 3.000000e+01 3.500000e+01}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 3.000000e+02 3.000000e+02 3.500000e+02 3.500000e+02 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t\tmax_value = ')
myfile.write('')
myfile.write('1.000000e+04')
myfile.write('')
myfile.write('\n\t\t\t\tmin_value = ')
myfile.write('')
myfile.write('-1.000000e+04')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_mode_1_negative = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('6')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 5.000000e+00 1.000000e+01 1.500000e+01 3.000000e+01 3.500000e+01}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 3.000000e+02 3.000000e+02 3.500000e+02 3.500000e+02 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_mode_2_positive = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('5')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 5.000000e+00 1.000000e+01 1.500000e+01 3.000000e+01}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 3.000000e+02 3.000000e+02 3.500000e+02 3.500000e+02}')
myfile.write('')
myfile.write('\n\t\t\t\tmax_value = ')
myfile.write('')
myfile.write('7.000000e+03')
myfile.write('')
myfile.write('\n\t\t\t\tmin_value = ')
myfile.write('')
myfile.write('-7.000000e+03')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_mode_2_negative = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('5')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 5.000000e+00 1.000000e+01 1.500000e+01 3.000000e+01}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{3.000000e+02 3.000000e+02 3.500000e+02 3.500000e+02 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_breakdown = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('2')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 3.000000e+03}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{-1.000000e+00 1.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_breakdown_negative = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('2')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 3.000000e+03}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{-1.000000e+00 1.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_inversion_positive_to_negative = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('2')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 3.000000e+03}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{-2.000000e+00 2.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\twaveform_inversion_negative_to_positive = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('2')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 3.000000e+03}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{-2.000000e+00 2.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\toutput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\toutput_waveform = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('ToroidalOutputWaveform')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')

#WAVEFORM PUFFING
myfile.write('\n\t\t+waveform_puffing = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('isttokbiblio::WaveformGAM')
myfile.write('\n\t\t\tinput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\tinput_time = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('usecDischargeTime')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tinput_mode = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PuffingWaveformMode')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tinput_AC_cycle = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PlasmaDirection')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tdischarge_status = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PuffingStatus')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('')
myfile.write('\n\t\t\twaveform_mode_1_positive = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('18')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 9.900000e-01 1.000000e+00 2.000000e+00 2.010000e+00 2.100000e+00 2.110000e+00 2.210000e+00 7.990000e+00 9.210000e+00 1.000000e+01 1.101000e+01 1.499000e+01 1.600000e+01 1.601000e+01 1.700000e+01 1.701000e+01 5.000000e+01}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t\tmax_value = ')
myfile.write('')
myfile.write('1.000000e+02')
myfile.write('')
myfile.write('\n\t\t\t\tmin_value = ')
myfile.write('')
myfile.write('0.000000e+00')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('')
myfile.write('\n\t\t\twaveform_mode_1_negative = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('21')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 9.900000e-01 1.000000e+00 2.200000e+00 2.210000e+00 2.990000e+00 4.110000e+00 4.990000e+00 6.110000e+00 6.210000e+00 9.990000e+00 1.000000e+01 1.001000e+01 1.100000e+01 1.101000e+01 1.121000e+01 1.499000e+01 1.621000e+01 1.631000e+01 1.641000e+01 5.000000e+01}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('')
myfile.write('\n\t\t\twaveform_mode_2_positive = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('5')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 5.000000e+00 1.000000e+01 1.500000e+01 3.000000e+01}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 3.000000e+02 3.000000e+02 3.500000e+02 3.500000e+02}')
myfile.write('')
myfile.write('\n\t\t\t\tmax_value = ')
myfile.write('')
myfile.write('1.000000e+01')
myfile.write('')
myfile.write('\n\t\t\t\tmin_value = ')
myfile.write('')
myfile.write('0.000000e+00')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('')
myfile.write('\n\t\t\twaveform_mode_2_negative = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('5')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 5.000000e+00 1.000000e+01 1.500000e+01 3.000000e+01}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('')
myfile.write('{3.000000e+02 3.000000e+02 3.500000e+02 3.500000e+02 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('')
myfile.write('\n\t\t\twaveform_breakdown = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('50')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 1.121000e+01 1.999000e+01 2.000000e+01 2.120000e+01 2.121000e+01 2.999000e+01 3.121000e+01 3.999000e+01 4.000000e+01 4.120000e+01 4.121000e+01 5.999000e+01 6.000000e+01 6.120000e+01 6.121000e+01 7.499000e+01 7.500000e+01 7.620000e+01 7.621000e+01 8.999000e+01 9.000000e+01 9.120000e+01 9.121000e+01 1.099900e+02 1.100000e+02 1.112000e+02 1.112100e+02 1.299900e+02 1.300000e+02 1.312000e+02 1.312100e+02 1.400000e+02 1.500000e+02 1.500100e+02 1.512000e+02 1.512100e+02 1.700000e+02 1.700100e+02 1.712000e+02 1.712100e+02 1.900000e+02 1.900100e+02 1.912000e+02 1.912100e+02 2.100000e+02 2.100100e+02 2.112000e+02 2.112100e+02 2.300000e+02}')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('{0.000000e+00 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('')
myfile.write('\n\t\t\twaveform_breakdown_negative = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('50')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('')
myfile.write('{0.000000e+00 1.121000e+01 1.999000e+01 2.000000e+01 2.120000e+01 2.121000e+01 2.999000e+01 3.121000e+01 3.999000e+01 4.000000e+01 4.120000e+01 4.121000e+01 5.999000e+01 6.000000e+01 6.120000e+01 6.121000e+01 7.499000e+01 7.500000e+01 7.620000e+01 7.621000e+01 8.999000e+01 9.000000e+01 9.120000e+01 9.121000e+01 1.099900e+02 1.100000e+02 1.112000e+02 1.112100e+02 1.299900e+02 1.300000e+02 1.312000e+02 1.312100e+02 1.400000e+02 1.500000e+02 1.500100e+02 1.512000e+02 1.512100e+02 1.700000e+02 1.700100e+02 1.712000e+02 1.712100e+02 1.900000e+02 1.900100e+02 1.912000e+02 1.912100e+02 2.100000e+02 2.100100e+02 2.112000e+02 2.112100e+02 2.300000e+02}')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('{0.000000e+00 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00 1.000000e+02 1.000000e+02 0.000000e+00 0.000000e+00}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('')
myfile.write('\n\t\t\twaveform_inversion_positive_to_negative = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('2')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('{')
myfile.write('0.000000e+00')
myfile.write(' ')
myfile.write('3.000000e+03')
myfile.write('}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('{')
myfile.write('-2.000000e+00')
myfile.write(' ')
myfile.write('2.000000e+00')
myfile.write('}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('')
myfile.write('\n\t\t\twaveform_inversion_negative_to_positive = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tvector_size = ')
myfile.write('')
myfile.write('2')
myfile.write('')
myfile.write('\n\t\t\t\tindex_vector = ')
myfile.write('{')
myfile.write('0.000000e+00')
myfile.write(' ')
myfile.write('3.000000e+03')
myfile.write('}')
myfile.write('')
myfile.write('\n\t\t\t\tdata_vector = ')
myfile.write('{')
myfile.write('-2.000000e+00')
myfile.write(' ')
myfile.write('2.000000e+00')
myfile.write('}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\toutput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\toutput_waveform = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PuffingOutputWaveform')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')
myfile.write('\n\t\t+time_windows = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('isttokbiblio::TimeWindowsGAM')
myfile.write('')
myfile.write('\n\t\t\tdischarge_time = ')
myfile.write('')
myfile.write(mylist[67].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tnumber_of_cycles = ')
myfile.write('')
myfile.write(mylist[66].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tfirst_cycle_positive_bool = ')
myfile.write('')

if mylist[67].strip('\n') == "Positive":
    myfile.write('1')
else:
    myfile.write('0')

myfile.write('')

myfile.write('\n\t\t\tauto_breakdown = ')
myfile.write('')
#myfile.write(mylist[225].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tusecthread_cycle_time = ')
myfile.write('')
#myfile.write(mylist[51].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tusec_pre_pulse_time = ')
myfile.write('')
#myfile.write(mylist[196].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tmaximum_inversion_usectime = ')
myfile.write('')
myfile.write(mylist[230].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tusectime_to_wait_for_starting_operation = ')
myfile.write('')
#myfile.write(mylist[52].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tpuffing_mode = ')
myfile.write('')
myfile.write('1')
myfile.write('')
myfile.write('\n\t\t\tend_discharge_after_unsuccess_bool = ')
myfile.write('')
myfile.write(mylist[225].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\ttime_between_online_and_discharge = ')
myfile.write('')
myfile.write(mylist[228].strip('\n'))
myfile.write('')

myfile.write('\n\t\t\tinput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\tplasma_current = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PlasmaCurrent')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tsystem_time = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('usecTime')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tis_saturated_bool = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('InSaturation')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tslow_stop = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('SlowStopBool')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\thard_stop = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('HardStopBool')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('')
myfile.write('\n\t\t\tpositive_time_windows = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tnumber_of_time_windows = ')
myfile.write('')
myfile.write('4')
myfile.write('')
myfile.write('\n\t\t\t\ttime_windows_values = ')
myfile.write('{')
myfile.write(mylist[107].strip('\n'))
myfile.write(' ')
myfile.write(mylist[108].strip('\n'))
myfile.write(' ')
myfile.write(mylist[109].strip('\n'))
myfile.write(' ')
myfile.write(mylist[110].strip('\n'))
myfile.write('}')
myfile.write('')
myfile.write('\n\t\t\t\tprimary_mode = ')
myfile.write('')
myfile.write('{1 1 1 7}')
myfile.write('')
myfile.write('\n\t\t\t\thorizontal_mode = ')
myfile.write('')
myfile.write('{1 1 1 7}')
myfile.write('')
myfile.write('\n\t\t\t\tvertical_mode = ')
myfile.write('')
myfile.write('{1 3 1 7}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('')
myfile.write('\n\t\t\tnegative_time_windows = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tnumber_of_time_windows = ')
myfile.write('')
myfile.write('4')
myfile.write('')
myfile.write('\n\t\t\t\ttime_windows_values = ')
myfile.write('{')
myfile.write(mylist[135].strip('\n'))
myfile.write(' ')
myfile.write(mylist[136].strip('\n'))
myfile.write(' ')
myfile.write(mylist[137].strip('\n'))
myfile.write(' ')
myfile.write(mylist[138].strip('\n'))
myfile.write('}')
myfile.write('')
myfile.write('\n\t\t\t\tprimary_mode = ')
myfile.write('')
myfile.write('{1 1 1 7}')
myfile.write('')
myfile.write('\n\t\t\t\thorizontal_mode = ')
myfile.write('')
myfile.write('{1 1 1 7}')
myfile.write('')
myfile.write('\n\t\t\t\tvertical_mode = ')
myfile.write('')
myfile.write('{1 4 1 7}')
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\toutput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\tprimary_mode = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PrimaryWaveformMode')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\thorizontal_mode = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('HorizontalWaveformMode')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tvertical_mode = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('VerticalWaveformMode')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\ttime_to_waveforms = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('usecDischargeTime')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tdischarge_direction = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PlasmaDirection')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tdischarge_status = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('DischargeStatus')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\ttoroidal_mode = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('ToroidalWaveformMode')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\ttoroidal_status = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('ToroidalStatus')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tpuffing_mode = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PuffingWaveformMode')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tpuffing_status = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PuffingStatus')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')

#TOMOGRAPHY
if float(mylist[0].strip('\n')) == 1 or float(mylist[18].strip('\n')) == 1:
    myfile.write('\n\t\t+tomography = ')
    myfile.write('{')
    myfile.write('\n\t\t\tClass = ')
    myfile.write('isttokbiblio::TomographyGAM')
    myfile.write('')
    myfile.write('\n\t\t\tfile_to_load = ')
    myfile.write('')
    myfile.write(mylist[200].strip('\n'))
    myfile.write('')
    myfile.write('\n\t\t\tnch = ')
    myfile.write('')
    myfile.write('24')
    myfile.write('')
    myfile.write('\n\t\t\tonlineChannels = ')
    myfile.write('')
    myfile.write('{1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1}')
    myfile.write('')
    myfile.write('\n\t\t\ttomography_radial_bool = ')
    myfile.write('')
    myfile.write('0')
    myfile.write('')
    myfile.write('\n\t\t\ttomography_vertical_bool = ')
    myfile.write('')
    myfile.write('0')
    myfile.write('')
    myfile.write('\n\t\t\tusectime_to_wait_for_starting_operation = ')
    myfile.write('')
    myfile.write('1000')
    myfile.write('')
    myfile.write('\n\t\t\tinput_signals = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\tChannel_0 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_top_0')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_1 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_top_1')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_2 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_top_2')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_3 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_top_3')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_4 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_top_4')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_5 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_top_5')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_6 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_top_6')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_7 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_top_7')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_8 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_outer_0')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_9 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_outer_1')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_10 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_outer_2')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_11 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_outer_3')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_12 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_outer_4')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_13 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_outer_5')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_14 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_outer_6')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_15 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_outer_7')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_16 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_bottom_0')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_17 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_bottom_1')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_18 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_bottom_2')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_19 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_bottom_3')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_20 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_bottom_4')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_21 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_bottom_5')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_22 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_bottom_6')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_23 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_tomography_bottom_7')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tsystem_time = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('usecTime')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('int32')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t}')
    myfile.write('\n\t\t\toutput_signals = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\ttomography_r = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('TomographyR')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\ttomography_z = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('TomographyZ')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\ttomography_intensity = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('TomographyIntensity')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t}')
    myfile.write('\n\t\t}')

#ELECTRIC PROBES
if float(mylist[3].strip('\n')) == 1 or float(mylist[21].strip('\n')) == 1:
    myfile.write('\n\t\t+electric_probes = ')
    myfile.write('{')
    myfile.write('\n\t\t\tClass = ')
    myfile.write('isttokbiblio::ElectricProbesGAM')
    myfile.write('\n\t\t\telectric_radial_bool = ')
    myfile.write('1')
    myfile.write('\n\t\t\telectric_vertical_bool = ')
    myfile.write('1')
    myfile.write('\n\t\t\tusectime_to_wait_for_starting_operation = ')
    myfile.write('1000')
    myfile.write('\n\t\t\tinput_signals = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\tChannel_0 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_electric_top_near')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_1 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_electric_inner_near')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_2 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_electric_outer_near')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tChannel_3 = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ADC_electric_bottom_near')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\tsystem_time = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('usecTime')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('int32')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t}')
    myfile.write('\n\t\t\toutput_signals = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\telectric_probes_r = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ElectricProbesR')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t\telectric_probes_z = ')
    myfile.write('{')
    myfile.write('\n\t\t\t\t\tSignalName = ')
    myfile.write('ElectricProbesZ')
    myfile.write('\n\t\t\t\t\tSignalType = ')
    myfile.write('float')
    myfile.write('\n\t\t\t\t}')
    myfile.write('\n\t\t\t}')
    myfile.write('\n\t\t}\n/*')

#MIRNOV (MAGNETIC) PROBES
if float(mylist[6].strip('\n')) == 1 or float(mylist[24].strip('\n')) == 1:
	myfile.write('\n\t\t+magnetic_probes = ')
	myfile.write('{')
	myfile.write('\n\t\t\tClass = ')
	myfile.write('isttokbiblio::MagneticsGAM')
	myfile.write('')
	myfile.write('\n\t\t\tusectime_to_wait_for_starting_operation = ')
	myfile.write('')
	myfile.write('1000')
	myfile.write('')
	myfile.write('\n\t\t\tmagnetic_radial_bool = ')
	myfile.write('')
	myfile.write('0')
	myfile.write('')
	myfile.write('\n\t\t\tmagnetic_vertical_bool = ')
	myfile.write('')
	myfile.write('0')
	myfile.write('')
	myfile.write('\n\t\t\tMirnovArrayDescription = ')
	myfile.write('{')
	myfile.write('')
	myfile.write('\n\t\t\t\tNumberOfProbes = ')
	myfile.write('')
	myfile.write('12')
	myfile.write('')
	myfile.write('\n\t\t\t\tAngles = ')
	myfile.write('{')
	myfile.write(mylist[71].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[75].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[79].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[83].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[87].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[91].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[95].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[99].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[103].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[107].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[111].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[115].strip('\n'))
	myfile.write('}')
	myfile.write('')
	myfile.write('\n\t\t\t\tCalibration = ')
	myfile.write('{')
	myfile.write(mylist[72].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[76].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[80].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[84].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[88].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[92].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[96].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[100].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[104].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[108].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[112].strip('\n'))
	myfile.write(' ')
	myfile.write(mylist[116].strip('\n'))
	myfile.write('}')
	myfile.write('')
	myfile.write('\n\t\t\t}')
	myfile.write('\n\t\t\tMeasurements = ')
	myfile.write('{')
	myfile.write('')
	myfile.write('\n\t\t\t\tNumberOfMeasurements = ')
	myfile.write('')
	myfile.write('12')
	myfile.write('')
	myfile.write('\n\t\t\t\tProbeNumbers = ')
	myfile.write('')
	myfile.write('{0 1 2 3 4 5 6 7 8 9 10 11}')
	myfile.write('')
	myfile.write('\n\t\t\t}')
	myfile.write('\n\t\t\tinput_signals = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\tChannel_0 = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('ADC_magnetic_0')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t\tChannel_1 = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('ADC_magnetic_1')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t\tChannel_2 = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('ADC_magnetic_2')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t\tChannel_3 = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('ADC_magnetic_3')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t\tChannel_4 = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('ADC_magnetic_4')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t\tChannel_5 = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('ADC_magnetic_5')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t\tChannel_6 = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('ADC_magnetic_6')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t\tChannel_7 = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('ADC_magnetic_7')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t\tChannel_8 = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('ADC_magnetic_8')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t\tChannel_9 = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('ADC_magnetic_9')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t\tChannel_10 = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('ADC_magnetic_10')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t\tChannel_11 = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('ADC_magnetic_11')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t\ttime = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('usecTime')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('int32')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t}')
	myfile.write('\n\t\t\toutput_signals = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\tmagnetic_probes_r = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('MagneticProbesR')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t\tmagnetic_probes_z = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('MagneticProbesZ')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t\tmagnetic_probes_plasma_current = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('MagneticProbesPlasmaCurrent')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t}')
	myfile.write('\n\t\t}\n*/')

#COSINE
if float(mylist[9].strip('\n')) == 1:
	myfile.write('\n\t\t+cosine_probe = ')
	myfile.write('{')
	myfile.write('\n\t\t\tClass = ')
	myfile.write('isttokbiblio::CosineProbeGAM')
	myfile.write('\n\t\t\tusectime_to_wait_for_starting_operation = ')
	myfile.write('1000')
	myfile.write('\n\t\t\tcosine_radial_bool = ')
	myfile.write('0')
	myfile.write('\n\t\t\tinput_signals = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\tinput_cosine_signals = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('ADC_cosine_probe')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t\tsystem_time = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('usecTime')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('int32')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t}')
	myfile.write('\n\t\t\toutput_signals = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\tcosine_probe_r = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('CosineProbeR')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t}')
	myfile.write('\n\t\t}')
	
#SINE
if float(mylist[12].strip('\n')) == 1:
	myfile.write('\n\t\t+sine_probe = ')
	myfile.write('{')
	myfile.write('\n\t\t\tClass = ')
	myfile.write('isttokbiblio::SineProbeGAM')
	myfile.write('\n\t\t\tusectime_to_wait_for_starting_operation = ')
	myfile.write('1000')
	myfile.write('\n\t\t\tsine_vertical_bool = ')
	myfile.write('0')
	myfile.write('\n\t\t\tinput_signals = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\tinput_sine_signals = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('ADC_sine_probe')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t\tsystem_time = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('usecTime')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('int32')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t}')
	myfile.write('\n\t\t\toutput_signals = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\tsine_probe_z = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('SineProbeZ')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t}')
	myfile.write('\n\t\t}')

#MAIN ROGOWSKI
myfile.write('\n\t\t+main_rogowski = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('isttokbiblio::MainRogowskiGAM')
myfile.write('\n\t\t\tusectime_to_wait_for_starting_operation = ')
myfile.write('1000')
myfile.write('\n\t\t\tinput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\tmain_rogowski_input = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('ADC_main_rogowski')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tsystem_time = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('usecTime')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\toutput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\trogowski_plasma_current = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('RogowskiPlasmaCurrent')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')

#IINTERFEROMETRY
if float(mylist[36].strip('\n')) == 1:
	myfile.write('\n\t\t+interferometry = ')
	myfile.write('{')
	myfile.write('\n\t\t\tClass = ')
	myfile.write('isttokbiblio::InterferometryGAM')
	myfile.write('\n\t\t\tusectime_to_wait_for_starting_operation = ')
	myfile.write('1000')
	myfile.write('\n\t\t\tinterferometry_radial_control_bool = ')
	myfile.write('0')
	myfile.write('\n\t\t\tinput_signals = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\tinterferometry_sine_signal = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('ADC_interferometry_sine')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t\tinterferometry_cosine_signal = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('ADC_interferometry_cosine')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t\tH_alpha = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('HAlfaOutput')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t\tdischarge_status = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('DischargeStatus')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('int32')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t}')
	myfile.write('\n\t\t\toutput_signals = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\tdensity = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('InterferometryDensity')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t\tradial_position = ')
	myfile.write('{')
	myfile.write('\n\t\t\t\t\tSignalName = ')
	myfile.write('InterferometryR')
	myfile.write('\n\t\t\t\t\tSignalType = ')
	myfile.write('float')
	myfile.write('\n\t\t\t\t}')
	myfile.write('\n\t\t\t}')
	myfile.write('\n\t\t}')

#H-ALPHA
myfile.write('\n\t\t+H_alpha = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('isttokbiblio::HAlphaGAM')
myfile.write('\n\t\t\tusectime_to_wait_for_starting_operation = ')
myfile.write('1000')
myfile.write('\n\t\t\tinput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\th_alfa_raw = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('ADC_H_alpha')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\ttime = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('usecTime')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\toutput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\th_alfa_output = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('HAlfaOutput')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')

#TECHNICAL SIGNALS
myfile.write('\n\t\t+technical_signals = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('isttokbiblio::TechnicalSignalsGAM')
myfile.write('')
myfile.write('\n\t\t\tusectime_to_wait_for_starting_operation = ')
myfile.write('')
myfile.write('1000')
myfile.write('')
myfile.write('\n\t\t\tinput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\thorizontal_current_transducer = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('ADC_horizontal_current')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tvertical_current_transducer = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('ADC_vertical_current')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tprimary_current_transducer = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('ADC_primary_current')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tv_loop = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('ADC_vloop')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\th_alfa_output = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('HAlfaOutput')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tsystem_time = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('usecTime')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\toutput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\thorizontal_current = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('HorizontalCurrent')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tvertical_current = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('VerticalCurrent')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tprimary_current = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PrimaryCurrent')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tiron_core_saturation = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('IronCoreSaturation')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tv_loop = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('VLoop')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\th_alpha = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('HAlfa')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')

#MACHINE PROTECTION
myfile.write('\n\t\t+machine_protection = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('isttokbiblio::MachineProtectionGAM')
myfile.write('')
myfile.write('\n\t\t\tiron_core_saturation_value = ')
myfile.write('')
myfile.write(mylist[193].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tiron_core_dangerous_value = ')
myfile.write('')
myfile.write(mylist[194].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tinput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\tplasma_current = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PlasmaCurrent')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\thorizontal_current = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('HorizontalCurrent')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tvertical_current = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('VerticalCurrent')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tprimary_current = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PrimaryCurrent')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tiron_core_saturation = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('IronCoreSaturation')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tv_loop = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('VLoop')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tdensity = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('Density')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\th_alpha = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('HAlfa')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\ttime = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('usecTime')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tsoft_stop_primary = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('SoftStopPrimaryPS')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tsoft_stop_horizontal = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('SoftStopVerticalPS')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tsoft_stop_vertical = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('SoftStopHorizontalPS')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\toutput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\tsaturated_bool = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('InSaturation')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tslow_stop = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('SlowStopBool')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\thard_stop = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('HardStopBool')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')

#PLASMA PARAMETERS
myfile.write('\n\t\t+plasma_parameters = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('isttokbiblio::PlasmaStatusGAM')
myfile.write('')
myfile.write('\n\t\t\thigh_current_threshold_value = ')
myfile.write('')
myfile.write(mylist[20].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\ttomography = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\ttomography_radial_bool = ')
myfile.write('')
myfile.write(mylist[0].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\ttomography_vertical_bool = ')
myfile.write('')
myfile.write(mylist[18].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tradial_high_current_weight = ')
myfile.write('')
myfile.write(mylist[2].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tradial_low_current_weight = ')
myfile.write('')
myfile.write(mylist[1].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tvertical_high_current_weight = ')
myfile.write('')
myfile.write(mylist[20].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tvertical_low_current_weight = ')
myfile.write('')
myfile.write(mylist[19].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\telectric_probes = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\telectric_radial_bool = ')
myfile.write('')
myfile.write(mylist[3].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\telectric_vertical_bool = ')
myfile.write('')
myfile.write(mylist[21].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tradial_high_current_weight = ')
myfile.write('')
myfile.write(mylist[5].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tradial_low_current_weight = ')
myfile.write('')
myfile.write(mylist[4].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tvertical_high_current_weight = ')
myfile.write('')
myfile.write(mylist[23].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tvertical_low_current_weight = ')
myfile.write('')
myfile.write(mylist[22].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\tmagnetic_probes = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tmagnetic_radial_bool = ')
myfile.write('')
myfile.write(mylist[6].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tmagnetic_vertical_bool = ')
myfile.write('')
myfile.write(mylist[24].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tradial_high_current_weight = ')
myfile.write('')
myfile.write(mylist[8].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tradial_low_current_weight = ')
myfile.write('')
myfile.write(mylist[7].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tvertical_high_current_weight = ')
myfile.write('')
myfile.write(mylist[26].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tvertical_low_current_weight = ')
myfile.write('')
myfile.write(mylist[25].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\tsine_probe = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tsine_vertical_bool = ')
myfile.write('')
myfile.write(mylist[27].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tvertical_high_current_weight = ')
myfile.write('')
myfile.write(mylist[29].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tvertical_low_current_weight = ')
myfile.write('')
myfile.write(mylist[28].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tradial_high_current_weight = ')
myfile.write('')
myfile.write(mylist[29].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tradial_low_current_weight = ')
myfile.write('')
myfile.write(mylist[28].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\tcosine_probe = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\t\t\tcosine_radial_bool = ')
myfile.write('')
myfile.write(mylist[9].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tradial_high_current_weight = ')
myfile.write('')
myfile.write(decimal(mylist[11].strip('\n')).normalize())
myfile.write('')
myfile.write('\n\t\t\t\tradial_low_current_weight = ')
myfile.write('')
myfile.write(mylist[10].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tvertical_high_current_weight = ')
myfile.write('')
myfile.write(mylist[11].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tvertical_low_current_weight = ')
myfile.write('')
myfile.write(mylist[10].strip('\n'))
myfile.write('')

myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\tinput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\trogowski_coil = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('RogowskiPlasmaCurrent')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tdensity = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('InterferometryDensity')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tsine_probe_z = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('SineProbeZ')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tcosine_probe_r = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('CosineProbeR')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tmagnetic_probes_r = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('MagneticProbesR')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tmagnetic_probes_z = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('MagneticProbesZ')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tmagnetic_probes_plasma_current = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('MagneticProbesPlasmaCurrent')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\telectric_probes_r = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('ElectricProbesR')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\telectric_probes_z = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('ElectricProbesZ')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\ttomography_r = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('TomographyR')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\ttomography_z = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('TomographyZ')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\ttime = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('usecTime')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\toutput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\tplasma_current = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PlasmaCurrent')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tposition_r = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PositionR')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tposition_z = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PositionZ')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tdensity = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('Density')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')

#CONTROLLER
myfile.write('\n\t\t+controller = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('isttokbiblio::ControllerGAM')
myfile.write('')
myfile.write('\n\t\t\tfile_to_load = ')
myfile.write('')
myfile.write(mylist[201].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tusecthread_cycle_time = ')
myfile.write('')
myfile.write('100')
myfile.write('')
myfile.write('\n\t\t\tminimum_toroidal_current = ')
myfile.write('')
myfile.write(mylist[202].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tmaximum_toroidal_current = ')
myfile.write('')
myfile.write(mylist[203].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tminimum_primary_current = ')
myfile.write('')
myfile.write(mylist[204].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tmaximum_primary_current = ')
myfile.write('')
myfile.write(mylist[205].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tminimum_vertical_current = ')
myfile.write('')
myfile.write(mylist[206].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tmaximum_vertical_current = ')
myfile.write('')
myfile.write(mylist[207].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tminimum_horizontal_current = ')
myfile.write('')
myfile.write(mylist[208].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tmaximum_horizontal_current = ')
myfile.write('')
myfile.write(mylist[209].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tminimum_plasma_current = ')
myfile.write('')
myfile.write(mylist[210].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tmaximum_plasma_current = ')
myfile.write('')
myfile.write(mylist[211].strip('\n'))
myfile.write('')
myfile.write('')
myfile.write(mylist[212].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tmaximum_horizontal_position = ')
myfile.write('')
myfile.write(mylist[213].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tminimum_horizontal_position = ')
myfile.write('\n\t\t\tminimum_vertical_position = ')
myfile.write('')
myfile.write(mylist[214].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tmaximum_vertical_position = ')
myfile.write('')
myfile.write(mylist[215].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tmaximum_puffing_output = ')
myfile.write('')
myfile.write('1.000000e+02')
myfile.write('')
myfile.write('\n\t\t\tminimum_puffing_output = ')
myfile.write('')
myfile.write('0.000000e+00')
myfile.write('')
myfile.write('\n\t\t\tminimum_density_halpha_scenario = ')
myfile.write('')
myfile.write(mylist[216].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tmaximum_density_halpha_scenario = ')
myfile.write('')
myfile.write(mylist[217].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tpuffing_duration_in_puffing_feedback_in_ms = ')
myfile.write('')
myfile.write(mylist[218].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tmaximum_idle_time_in_puffing_feedback_in_ms = ')
myfile.write('')
myfile.write(mylist[219].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tminimum_idle_time_in_puffing_feedback_in_ms = ')
myfile.write('')
myfile.write(mylist[220].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tpuffing_feedback_usec_change_percentage_by_cycle = ')
myfile.write('')
myfile.write(mylist[221].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tpuffing_feedback_mode = ')
myfile.write('')
myfile.write('1')
myfile.write('')
myfile.write('\n\t\t\tinterferometry_radial_control_bool = ')
myfile.write('')
myfile.write(mylist[36].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tpuffing_mode = ')
myfile.write('')
myfile.write('1')
myfile.write('')
myfile.write('\n\t\t\tinput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\tprimary_current = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PrimaryCurrent')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\thorizontal_current = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('HorizontalCurrent')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tvertical_current = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('VerticalCurrent')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tprimary_waveform = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PrimaryOutputWaveform')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\thorizontal_waveform = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('HorizontalOutputWaveform')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tvertical_waveform = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('VerticalOutputWaveform')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tpuffing_waveform = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PuffingOutputWaveform')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\ttoroidal_waveform = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('ToroidalOutputWaveform')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tplasma_current = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PlasmaCurrent')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tposition_r = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PositionR')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tposition_z = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PositionZ')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tdensity = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('Density')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\thalpha = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('HAlfa')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tinterferometry_radial_position = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('InterferometryR')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tprimary_mode = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('PrimaryWaveformMode')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\thorizontal_mode = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('HorizontalWaveformMode')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tvertical_mode = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('VerticalWaveformMode')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\ttime = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('usecTime')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tdischarge_status = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('DischargeStatus')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\tPID_primary = ')
myfile.write('{')
myfile.write('\n\t\t\t\t')
myfile.write('proportional_soft = ')
myfile.write('')
myfile.write(mylist[38].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tintegral_soft = ')
myfile.write('')
myfile.write(mylist[39].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tderivative_soft = ')
myfile.write('')
myfile.write(mylist[40].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tproportional_normal = ')
myfile.write('')
myfile.write(mylist[41].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tintegral_normal = ')
myfile.write('')
myfile.write(mylist[42].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tderivative_normal = ')
myfile.write('')
myfile.write(mylist[43].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tproportional_hard = ')
myfile.write('')
myfile.write(mylist[44].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tintegral_hard = ')
myfile.write('')
myfile.write(mylist[45].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tderivative_hard = ')
myfile.write('')
myfile.write(mylist[46].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\tPID_vertical = ')
myfile.write('{')
myfile.write('\n\t\t\t\t')
myfile.write('proportional_soft = ')
myfile.write('')
myfile.write(mylist[47].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tintegral_soft = ')
myfile.write('')
myfile.write(mylist[48].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tderivative_soft = ')
myfile.write('')
myfile.write(mylist[49].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tproportional_normal = ')
myfile.write('')
myfile.write(mylist[50].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tintegral_normal = ')
myfile.write('')
myfile.write(mylist[51].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tderivative_normal = ')
myfile.write('')
myfile.write(mylist[52].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tproportional_hard = ')
myfile.write('')
myfile.write(mylist[53].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tintegral_hard = ')
myfile.write('')
myfile.write(mylist[54].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tderivative_hard = ')
myfile.write('')
myfile.write(mylist[55].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\tPID_horizontal = ')
myfile.write('{')
myfile.write('\n\t\t\t\t')
myfile.write('proportional_soft = ')
myfile.write('')
myfile.write(mylist[56].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tintegral_soft = ')
myfile.write('')
myfile.write(mylist[57].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tderivative_soft = ')
myfile.write('')
myfile.write(mylist[58].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tproportional_normal = ')
myfile.write('')
myfile.write(mylist[59].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tintegral_normal = ')
myfile.write('')
myfile.write(mylist[60].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tderivative_normal = ')
myfile.write('')
myfile.write(mylist[61].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tproportional_hard = ')
myfile.write('')
myfile.write(mylist[62].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tintegral_hard = ')
myfile.write('')
myfile.write(mylist[63].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t\tderivative_hard = ')
myfile.write('')
myfile.write(mylist[64].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\toutput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\toutput_horizontal = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('SendToHorizontalValue')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\toutput_vertical = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('SendToVerticalValue')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\toutput_primary = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('SendToPrimaryValue')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\toutput_Puffing = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('SendToPuffing')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\toutput_Toroidal = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('SendToToroidal')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')

#PS-PRIMARY
myfile.write('\n\t\t+PSCommunicator_primary = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('isttokbiblio::PowerSupplyCommunicatorGAM')
myfile.write('\n\t\t\tUARTPortAddress = ')
myfile.write('')
myfile.write(mylist[191].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tPointOfZeroCurrent = ')
myfile.write('')
myfile.write(mylist[192].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tCurrentStep = ')
myfile.write('')
myfile.write(mylist[193].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tusecGlobalPeriod = ')
myfile.write('')
myfile.write('100')
myfile.write('')
myfile.write('\n\t\t\tinput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\tCurrentSignal = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('SendToPrimaryValue')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tGlobalTime = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('usecTime')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tdischarge_status = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('DischargeStatus')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\toutput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\tsoft_stop = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('SoftStopPrimaryPS')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')

#PS-VERTICAL
myfile.write('\n\t\t+PSCommunicator_vertical = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('isttokbiblio::PowerSupplyCommunicatorGAM')
myfile.write('\n\t\t\tUARTPortAddress = ')
myfile.write('')
myfile.write(mylist[194].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tPointOfZeroCurrent = ')
myfile.write('')
myfile.write(mylist[195].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tCurrentStep = ')
myfile.write('')
myfile.write(mylist[196].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tusecGlobalPeriod = ')
myfile.write('')
myfile.write('100')
myfile.write('')
myfile.write('\n\t\t\tinput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\tCurrentSignal = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('SendToVerticalValue')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tGlobalTime = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('usecTime')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tdischarge_status = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('DischargeStatus')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\toutput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\tsoft_stop = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('SoftStopVerticalPS')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')

#PS-HORIZONTAL
myfile.write('\n\t\t+PSCommunicator_horizontal = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('isttokbiblio::PowerSupplyCommunicatorGAM')
myfile.write('\n\t\t\tUARTPortAddress = ')
myfile.write('')
myfile.write(mylist[197].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tPointOfZeroCurrent = ')
myfile.write('')
myfile.write(mylist[198].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tCurrentStep = ')
myfile.write('')
myfile.write(mylist[199].strip('\n'))
myfile.write('')
myfile.write('\n\t\t\tusecGlobalPeriod = ')
myfile.write('')
myfile.write('100')
myfile.write('')
myfile.write('\n\t\t\tinput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\tCurrentSignal = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('SendToHorizontalValue')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('float')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tGlobalTime = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('usecTime')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tdischarge_status = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('DischargeStatus')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t\toutput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\tsoft_stop = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('SoftStopHorizontalPS')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')

#CODAC
myfile.write('\n\t\t+Codac = ')
myfile.write('{')
myfile.write('\n\t\t\tClass = ')
myfile.write('isttokbiblio::FireSignalDischargeStatusGAM')
myfile.write('\n\t\t\tinput_signals = ')
myfile.write('{')
myfile.write('\n\t\t\t\tdischarge_status = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('DischargeStatus')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t\tsystem_time = ')
myfile.write('{')
myfile.write('\n\t\t\t\t\tSignalName = ')
myfile.write('usecTime')
myfile.write('\n\t\t\t\t\tSignalType = ')
myfile.write('int32')
myfile.write('\n\t\t\t\t}')
myfile.write('\n\t\t\t}')
myfile.write('\n\t\t}')
myfile.write('\n\t\t')
myfile.write('Online = ')
myfile.write('')
myfile.write('"Codac ATCAAdc DataCollection time_windows tomography electric_probes magnetic_probes sine_probe cosine_probe main_rogowski interferometry H_alpha technical_signals plasma_parameters machine_protection waveform_primary waveform_vertical waveform_horizontal waveform_toroidal waveform_puffing controller PSCommunicator_horizontal PSCommunicator_vertical PSCommunicator_primary ATCADac"')
myfile.write('')
myfile.write('\n\t\t')
myfile.write('Offline = ')
myfile.write('')
myfile.write('"Codac ATCAAdc DataCollection time_windows tomography electric_probes magnetic_probes sine_probe cosine_probe main_rogowski interferometry H_alpha technical_signals plasma_parameters machine_protection waveform_primary waveform_vertical waveform_horizontal waveform_toroidal waveform_puffing controller PSCommunicator_horizontal PSCommunicator_vertical PSCommunicator_primary ATCADac"')
myfile.write('')
myfile.write('\n\t\t')
myfile.write('Safety = ')
myfile.write('')
myfile.write('"Codac ATCAAdc DataCollection time_windows tomography electric_probes magnetic_probes sine_probe cosine_probe main_rogowski interferometry H_alpha technical_signals plasma_parameters machine_protection waveform_primary waveform_vertical waveform_horizontal waveform_toroidal waveform_puffing controller PSCommunicator_horizontal PSCommunicator_vertical PSCommunicator_primary ATCADac"')
myfile.write('')
myfile.write('\n\t\tSafetyMsecSleep = ')
myfile.write('')
myfile.write('1')
myfile.write('')
myfile.write('\n\t}')
myfile.write('\n}\n')

#ADVANCED CONFIGURATION
myfile.write('+AdvancedConfiguration = ')
myfile.write('{')
myfile.write('\n\tClass = ')
myfile.write('isttokbiblio::AdvancedConfigurator')
myfile.write('')
myfile.write('\n\tDescription = ')
myfile.write('"')
myfile.write(mylist[232].strip('\n'))
myfile.write('"')
myfile.write('\n\tdefault_directories = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\tdefault_config_file_path = ')
myfile.write('')
myfile.write('"/home/pricardofc/CSS-Workspaces/sys-mng-opi/CSS/cfg-files/last.cfg"')
myfile.write('')
myfile.write('\n\t\tconfig_files_directory = ')
myfile.write('')
myfile.write('"/home/pricardofc/CSS-Workspaces/sys-mng-opi/CSS/cfg-files"')
myfile.write('')
myfile.write('\n\t}')
myfile.write('\n\tcolours = ')
myfile.write('{')
myfile.write('\n\t\theader_colour = ')
myfile.write('AliceBlue')
myfile.write('\n\t\tcolour1 = ')
myfile.write('Wheat')
myfile.write('\n\t\tcolour2 = ')
myfile.write('LightSkyBlue')
myfile.write('\n\t\tcolour3 = ')
myfile.write('LightGoldenRodYellow')
myfile.write('\n\t\tcolour4 = ')
myfile.write('LightSkyBlue')
myfile.write('\n\t\tcolour5 = ')
myfile.write('LightGoldenRodYellow')
myfile.write('\n\t\tfooter_colour = ')
myfile.write('AliceBlue')
myfile.write('\n\t}')
myfile.write('\n}\n')

#DISCHARGE (GENERAL) CONFIGURATION
myfile.write('+DischargeConfigurator = ')
myfile.write('{')
myfile.write('\n\tClass = ')
myfile.write('isttokbiblio::MainConfigurator')
myfile.write('')
myfile.write('\n\tDescription = ')
myfile.write('"')
myfile.write(mylist[163].strip('\n'))
myfile.write('"')
myfile.write('\n\tgraphics = ')
myfile.write('{')
myfile.write('\n\t\tscreen_resolution_x = ')
myfile.write('1280')
myfile.write('\n\t\tscreen_resolution_y = ')
myfile.write('1024')
myfile.write('\n\t}')
myfile.write('\n\tcolours = ')
myfile.write('{')
myfile.write('\n\t\theader_colour = ')
myfile.write('AliceBlue')
myfile.write('\n\t\tdiagnostics_parameters_colour = ')
myfile.write('Wheat')
myfile.write('\n\t\tcontrol_parameters_colour = ')
myfile.write('LightSkyBlue')
myfile.write('\n\t\ttime_windows_colour = ')
myfile.write('LightGoldenRodYellow')
myfile.write('\n\t\tedit_colour = ')
myfile.write('White')
myfile.write('\n\t\tfooter_colour = ')
myfile.write('AliceBlue')
myfile.write('\n\t}')
myfile.write('\n\tdefault_directories = ')
myfile.write('{')
myfile.write('')
myfile.write('\n\t\tdefault_config_file_path = ')
myfile.write('')
myfile.write('"/home/pricardofc/CSS-Workspaces/sys-mng-opi/CSS/cfg-files/last.cfg"')
myfile.write('')
myfile.write('\n\t\tconfig_files_directory = ')
myfile.write('')
myfile.write('"/home/pricardofc/CSS-Workspaces/sys-mng-opi/CSS/cfg-files"')
myfile.write('\n\t}')
myfile.write('\n}\n')
myfile.close()
