Can OpenMV write to log file and record video?

I am using file = open(logFilename, ‘a’) and file.write(message + ‘\n’) to log data to a file on the SD card.

When I also use recordFile = image.ImageIO(pathFilename, “w”) and recordFile.write(img) to record a video, the log file seems to be corrupted and is empty.

Can OpenMV write data to a log file and record video at the same time?

Hi, there should be no issue doing two files at the same time. Did you make sure to close the files once finished?