LabVIEW 2017 Datalogging and Supervisory Control Module Help
»View Product Info
Complete the following steps to enable logging to the Citadel database for a process.
- Right-click a LabVIEW 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 Citadel page of the DSC Settings: Database page, place a checkmark in the Enable Data Logging checkbox to enable data logging.
- 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. If you want to log data to a remote computer, ensure you have the LabVIEW Datalogging and Supervisory Control (DSC) Module or the DSC Module Run-Time System installed on that 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. If you log data to directories created in a secure file system, such as NTFS, you must grant Change or Full Control permissions for the current user, the SYSTEM account, and the NETWORK SERVICE account to access the directory. If you do not grant these accounts appropriate access to the database directory, the Citadel service cannot create and modify the database files it uses to store historical data and alarms.
|Note (Windows 7/Vista) The Citadel service does not have access to a specific user folder, for example, C:\Users\lvadmin\. Therefore, the Citadel service cannot create or modify databases in this folder.|
- 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 data logging.
- 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.