In [9]:
import os
import time
import endaq.ide as ei

s5_e = ed.getDevices()[1]
path = os.path.join(s5_e.path, "DATA/RECORD")
recordings = 0

while recordings < 3:
    s5_e.startRecording()
    # device must be configured to stop appropriately
    
    print("Recording Started!")
    time.sleep(7)  # wait for 3s recording limit & to reconnect to E:
    
    # grab the new file
    newfile = os.listdir(path)[-1]  # gets name of file
    newfile = os.path.join(path, newfile)  # gets path location of file & combines
    ide = ei.get_doc(newfile)
    
    # ... 
    
    print(ide)
    recordings += 1
Recording Started!
<Dataset 'pythonRecord_000004' at 0x1dea7b99308>
Recording Started!
<Dataset 'pythonRecord_000005' at 0x1dea7e70c48>
Recording Started!
<Dataset 'pythonRecord_000006' at 0x1dea7ed75c8>