How to log temperature for each program on 2704?

We want to log the temperature on 2704 as a .csv or txt file every time when a temperature program runs. OPC server can start to log the temperature into .csv file, but it save the file as continuous data recording. Can we configure the OPC server to start and stop logging and save the logging data as an unique file when a program runs? Or is there any other method can achieve our goal?

1 person has
this question