FTView SE Datalog help

DwSoFt

Lifetime Supporting Member
Join Date
Mar 2012
Location
Alberta
Posts
960
Hi All.


I Have a client that has a nice ftview SE Distributed running for a plant. it datalogs and saves the old files for a couple hundred tags every 10 seconds.

thye have asked me to give a daily average for 2018 on 3 tags, and i am unsure how to get all this done easily from 365 files, when each file takes a while in file viewer to open and converting it leaves over 1.5gb csv file.



Am i missing something or really up schit creek?


FYI this is a yearly thing, and i started datalogging everything on Ignition which is their scada system, so next year will be alot nicer.
 
I would create a program in VB.net or something similar to read each of the files, place them in a database and then produce the reports that you require.
Just a thought.
Regards,
 
I would create a program in VB.net or something similar to read each of the files, place them in a database and then produce the reports that you require.
Just a thought.
Regards,


Sounds like an Idea. DO you have an example of this?
 
Sounds like an Idea. DO you have an example of this?

I could put something together in C# that would read the file, extract the data and save/append it to a CSV file. You could open the CSV in Excel or import it into a DB like SQLite. I'd need a few days though, plus a copy of one of the files.
 
I did a quick and dirty perl script w/ exactely 0 error handling to convert those files enmasse to .csv
You need the datalog conversion .exe for this.

Code:
# Batch convert FactoryTalk Datalog files to csv and then concat them.
# Version 1.0.0

#takes 2 arguments - source directory and destination directory
$dir = $ARGV[0];
$dest = $ARGV[1];

$dir = 'new' if ! $dir;

chdir $dir;
opendir DH, $dir;

while ($fn = readdir DH)
{
        next unless ($fn =~ m/.+[Ff][Ll][Oo][Aa][Tt]\)\.[Dd][Aa][Tt]$/);
	next unless (-f "$dir/$fn");

	print "$fn\n";
	system("$dir\\FTViewFileViewer.exe", "/sd", "$fn", "$fn.csv", "/table");
	#print is just for testing, comment out in production
}
#system("copy", "$dir\\*.csv", "$dir\\result.csv");
closedir DH;

You'd need to wrap whatever else around this you needed, but should be able to batch the .csv files into a database or excel or whatever.
 

Similar Topics

Hi all, I have a customer with an FTView SE system running some datalog files. They can see the trends on the client, but they now want to...
Replies
7
Views
2,711
I have global object button that calls an analog faceplate, which has a trend. This trends get the live data based on the value defined in the...
Replies
2
Views
1,761
I'm using FTView SE to datalog to SQL Server with an ODBC connection. IS there a method to signal when this connection is broken for any reason...
Replies
2
Views
1,166
Hey guys, long time forum scavenger first time poster here! So my company has been a long time user of RSView32 and we've grown quite accustomed...
Replies
2
Views
1,596
Hi, I'm using FTView SE 8.2. I have a datalog model setup to log to a file set three tags from a PLC once a day. I don't want to display the...
Replies
5
Views
4,280
Back
Top Bottom