Bug fixed

running 2nd time fails because
 the first run creates DragonDaqM.dat in which wrong text is written.