Recondaddy Posted February 24, 2010 Share Posted February 24, 2010 I wish to change the logging file name that I'm using for my export set, everyday, and was wondering if it can be done using the example from the help file. Here is the script I'm using: // loop forever: while (1) // wait until 11:59pm waituntil(23h59m) // wait another minute to move us into tomorrow delay(1m) // set logging file name: Export.MyExportSet.strFileName = "MyData_" + FormatDateTime("%y_%m_%d.csv",SysTime()) // and repeat endwhile What the example in the help file fails to mention is what to do with the Filename that was entered in the dialog when setting up the logging file or export set. If I browse to a filename to use, the program completely ignores (apparently) the script, above. If I leave it blank, the software errors out. I'm lost. Link to comment Share on other sites More sharing options...
AzeoTech Posted February 24, 2010 Share Posted February 24, 2010 I personally actually just put this line: Export.MyExportSet.strFileName = "MyData_" + FormatDateTime("%y_%m_%d.csv",SysTime()) in an event on one of my channels instead of creating a separate sequence. You do not need to specify a file name in the export/logging set as long as you don't run it until the name is set in script. You can use an auto-start sequence with the above line of script to set it on start up. I'm assuming of course that you named your export set "MyExportSet" Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.