Logging Historical Data (DSC Module)

LabVIEW 2017 Datalogging and Supervisory Control Module Help

Edition Date: March 2017

Part Number: 371618K-01

»View Product Info
Download Help (Windows Only)

Complete the following steps to enable logging to the Citadel database for a process.

Note Note  You also can log data to a supported relational database for a process. Use the Relational Database page on the DSC Settings: Database page of the Project Library Properties dialog box to enable logging to a supported relational database.
  1. 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.
  2. Select DSC Settings: Database from the Category list.
  3. On the Citadel page of the DSC Settings: Database page, place a checkmark in the Enable Data Logging checkbox to enable data logging.
  4. 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.
    Note  Refer to the National Instruments Web site for information about the DSC Module Run-Time System.
  5. Enter the name of the database to which you want to log data in the Database name text box.
  6. 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.
  7. Select the length of time you want data to be available in the database in the Data Lifespan options.
  8. Place a checkmark in the Enable Alarms and Events Logging checkbox to log alarms and events.
  9. 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.
  10. 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.

WAS THIS ARTICLE HELPFUL?

Not Helpful