thanks for the reply.
The way it’s done (for now):
I put store the configuration files to flash by uploading the files to the brain.
When i’m done uploading, the store to flash command is excecuted.
Then I start to run the strategy.
During the power-up, the uploaded files are used to create the variable tables, comm handle, etc…
The strategy is running without error’s, so the configfiles are read from flash.
While debugging the opto-script strategy (a break-point is set and with step into walked through the script) a reboot command is received from a handler.
The brains are connected to a scadasystem. When for a period no data is recieved from a brain, a reboot is send to this brain.
Sometimes, after this reboot, these’s configuration files are gone.
The logfile is created during power-up, error’s appended to this logfile and stored to flash.
I use the following code:
// message for logfile
s_ErrorMessage = "Total points used: " + s_Total_Points + " " + s_Time + " # ";
// append to logfile
s_File = “file:a,” + s_Logfile;
i32_Error_CH = OpenOutgoingCommunication(chLocalFile);
// save to flash
These logfiles remain on flash after a reboot.