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