02-10-2009 03:42 PM
Hi,
We are developing a DSC based system in which shared variables are used for data communication.
All the shared variables are programmatically created and configured for logging and alarming. For data logging, we are creating a Database programmatically in a custom location relative to the Installed directory.
At present we are facing an issue in Logging the data in the specified database.
The issue is, even though the shared variables are configured to log data in the newly created database, all the variables are logging to Default Database. We saved a process to Library file for inspecting the configured database.
The Figure 1 shows the library properties
The Figure 2 shows the Data logging traces in MAX
Currently we are running two Servers with identical setup. Both the servers are behaving in the same way as mentioned above .
Any kind of help will be appreciated.
Regards,
Mirash
05-21-2011 02:37 AM
Hi,
I am facing the same problem here. I specified a database for shared variable like you. However it switches to the default database from time to time. if i stop and restart the proces from the distrib. sys. man, it starts using the correct database again. When i want to check the data 1 or 2 days later, i see that it used the default database back again.
Thank you,
Best regards,
Dinçer
05-21-2011 03:32 AM
Hi,
Check whether you have any shared variable library configured for logging with a wrong Database path.
My problem was, I had three libraries which were configured for Database with a wrong path. When I cleared that, my problem got solved.
Shared variable engine will create an Alarm for this saying somthing like, the configured database has a problem, So the data will be logged to default database. You can retrieve the Alarms from the Default Database to check it.
Mirash