03-03-2006 06:47 AM
03-07-2006 10:05 AM
03-07-2006 11:59 AM
@True_Myst wrote:
No one else experienced a similar need? No one can suggest a solution? ...
True_Myst,
There are a few differences between LVDSCv7.1 which you use and LVDSCv6.1 which I've got, but I'm familiar with the "To stop the tag-engine the following VIs need to be aborted..." message. So one suggestion until a better one appears:
In your SCADA VIs, you could use VI Server to run a seperate, independent VI which would:
1. Stop (and maybe exit) your SCADA application/VIs in a properly controlled manner;
2. Stop/exit the Tag Engine;
3. Archive the desired traces programmatically with the 'destructive' option enabled;
4. Restart your SCADA app/VIs (and the Tag Engine as well if your app doesn't do that);
5. Close itself and go away.
All programmatic and no manual intervention required. If you're unfamiliar with VI Server, the examples that ship with LabVIEW are a good place to start.
03-08-2006
12:57 AM
- last edited on
11-14-2025
04:08 PM
by
Content Cleaner
03-08-2006 04:40 AM
Hi AlessioD! Thanks for your kind answer.
My problem is deleting the original database, not copying it elsewhere. I tried creating a local copy with destructive option (as also suggested in that article), but even if I had no VIs running and no LabVIEW/DSC clients on my PC or on the network I got this error: "HIST_DeleteTraces.vi, Citadel: (Hex 0x8ABC1004) Some data cannot be deleted because it is shared with other clients" and all the data were still there. This was due to the fact that the tag-engine was running. The only way to make it work was stopping the tag-engine.
Furthermore I noticed another strange thing in these days: the context help for Alarm & Event Archive.vi says "Use this vi to perform a destructive or non-destructive archival operation for alarms and events on a Citadel database", but (as it's clearer in the on-line help) no destructive option is available for that vi! This seems to be a bug in LabVIEW 7.1 (in 6.1 it was not like that, if I understand right).
So, even if the destructive option would work for the traces, I still would have the problem of deleting alarms&events.
Another possible strategy is setting the "historical data lifespan" to a fixed time period and before the end of that period copying the database to the remote PC. But this is less efficient, since it doesn't take care of the actual database size on the HD. And I would still have the problem of deleting old alarms&events!
My need is to free space on the HD automatically, possibly without closing my application and loosing data from the plant, but this seems to be impossible, so at present I'm working on Donald's suggestion (many thanks to you too!), trying to minimize the "off-line" time for my application performing the back-up/HD-clean operations.
I think this is a big limitation in using the DSC module in SCADA application, because in any case I would have some data-loss when I need to delete the database after backing it up.
03-08-2006 04:54 AM
03-09-2006 09:54 AM
I am curious and would like to see what happens on my machine.
Can you post an example that replicates the issue here so that I can see what you are actually doing?
AlessioD