SimulationFunctions.py 440 Bytes
Newer Older
Andrea Boccardi's avatar
Andrea Boccardi committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
def StartDumping():
    MyString = 'D\n'
    fd_Out=open('../simulation/Py2V.fifo', 'w')
    fd_Out.write(MyString)
    fd_Out.close() 

def StopSimulation():
    MyString = 'S\n'
    fd_Out=open('../simulation/Py2V.fifo', 'w')
    fd_Out.write(MyString)
    fd_Out.close()      

def WaitSimulation(Time):
    MyString = 'A '+str(Time)+'\n'
    fd_Out=open('../simulation/Py2V.fifo', 'w')
    fd_Out.write(MyString)
    fd_Out.close()