RSView33 datalog and trending...making it selective?

pgguy_007

Member
Join Date
Oct 2006
Location
Prince George
Posts
6
Happy New Years all!
I am working on a project where wood is pressurized with a treating agent for several hours. The pressure for each cycle has to be charted and printed to be attached to each "load".
I have no problem with this, but now they would like to be able to recall "historical" charts.
I was able to use macros to start and stop my datalog model so its active only during the cycle, and at the start I also use the datalogfilenewname command to give each datalog file a name like "charge#" where # is equal to the current charge number (a tag in the PLC).
There are now datalog files for each charge, and I am able to call them up by comparing the charge# with the currentfilenumber of the datalog, but this ONLY works if the computer isnt restarted. When that happens, datalog creates an "extra" log file and the file numbering that trending uses to "pull up" the correct datalog file to display on the trend is of course wrong.

My question is: has anyone been able to find a way to call up a datalog file in a trend using file name, instead of using the CurrentFile command to call up a file by offset number?
Something in VBA code perhaps that can look up a file name and assign a file offset based on that instead???

Thank you for any help on this one. Its really got my head scratching.
 
Some more info:
When you open the most recently created file using trending, the "currentfilenumber" will be 0. If you click the "back a file" button the "currentfilenumber" will be -1. Clicking it again gives me a -2, and so on.
That is why I THOUGHT that if I was currently running Charge30 and wanted to look at a chart from Charge28, I could just goto datalog file "currentfilenumber -2. That works as long as no extra datalogs are accidentally created when the computer is rebooted, etc. There is no way to absolutely "sync" the files with the charge numbers unless I can reference filenames.
Hope this clarifies...
Mo
 

Similar Topics

Hello, I was looking to store some values from our FactoryTalk Application using Datalog to a MariaDB. I see there is quite a bit of documentation...
Replies
1
Views
43
From the Red Lion website, after some customer enquiries in the last week or so... Rev. March 25, 2024 [18:30] Just thought it might help a...
Replies
9
Views
253
Context: PLC= S7-1212C, HMI=KTP1200 Basic. Hi, The operator has reported that, from time-to-time, when he presses the "Generate Report" button...
Replies
5
Views
456
I never really noticed this because I rarely do datalogging in a PV+, but it seems you can only start one datalog. Is this really true? My...
Replies
5
Views
786
Hi guys, Is it possible to automatically generate PDF Report of Trend and Datalog in FactoryTalk View SE v12? If YES, Please, how?
Replies
0
Views
671
Back
Top Bottom