Complete the following steps to enable logging for a process.
- Right-click a project library in the Project Explorer window and select Properties from the shortcut menu to display the Project Library Properties dialog box.
- Select DSC Settings: Database from the Category list.
- On the DSC Settings: Database page, place a checkmark in the Enable Data Logging checkbox to enable datalogging.
- Enter the name of the computer to which you want to log data in the Log to computer text box. The default computer is localhost, which is the local computer.
- Enter the name of the database to which you want to log data in the Database name text box.
- Enter the location of the database to which you want to log data in the Database path text box.
 | Note If you log data to directories created in a secure file system, such as NTFS, you must grant the System account Change or Full Control permissions to the directory. If you do not grant the System account appropriate access to the database directory, the Citadel service is unable to create and modify the database files it uses to store historical data and alarms. |
- Select the length of time you want data to be available in the database in the Data Lifespan options.
- Place a checkmark in the Enable Alarms and Events Logging checkbox to log alarms and events.
- Place a checkmark in the Use the same database for alarms and events checkbox to use the same database you set up for datalogging.
- Click the OK button to close the dialog box.
 |
Note You also must enable logging for shared variables. |
You also can use the Enable Data Logging on Process VI or the Enable Alarm Logging on Process to enable or disable logging to the Citadel database programmatically.