ExportTagHistoric

Parent Previous Next

ExportTagHistoric

 Export the history of a tag to a txt file.


Syntax:

bool ExportTagHistoric(string tagName, string filePath);
Export the history of a tag to a txt file


bool ExportTagHistoric(string tagName, string filePath,  DateTime startDate, DateTime endDate)
Export the history between two dates of a tag to a txt file

Params:

String tagName: The name of the tag.

String filePath: The path of the txt file.

DateTime startDate: The start date to the export (DD/MM/YYYY).

DateTime endDate: The end date to the export (DD/MM/YYYY).


Return:

True: if the file was created correctly.

False: if there were an error while creating the history file.


Example:

Execute the application located at 'c:\app.exe'.

  


SVHistory.ExportTagHistoric("TagA","c:\\History.txt");

 


Execute the application located at 'c:\app.exe' passing the parameter 'DEBUG=1'.

  


SVHistory.ExportTagHistoric("TagA","c:\\History.txt", @startDate, @endDate);