Logging


atomic361

Recommended Posts

Hi,

I need to log data every 60 seconds over a twenty four hour period with a new file name starting at midnight i have attached the code for the sequence, but i get an error and no file is created. I think the sequence hangs up at line 8

beginlogging (Panel_01)

// loop forever:

while (1)

// wait until 11:59pm

waituntil(23h59m)

// wait another minute to move us into tomorrow

delay(1m)

// set logging file name:

Logging.Panel_01.strFileName = "D:\Logging Folder\Area1 Logging\Area1 " + FormatDateTime("%d_%m_%y.csv",SysTime())

// and repeat

endwhile

Hope you can help...!

Regards,

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.