Generating Citadel Historical Data Using LabVIEW DSC Module

Updated Oct 13, 2021

Reported In

Software

  • LabVIEW Datalogging and Supervisory Control Module
  • LabVIEW

Issue Details

I want to generate historical data for my Citadel database. Can I add data with custom timestamps to my Citadel database by using the LabVIEW Datalogging and Supervisory Control (DSC) Module?
 

Solution

As explained in Logging Data with NI Citadel, you can write to your database by using shared variables, a DataSet Marking I/O Server, or the Citadel Writing API, all included with the DSC Module. In order to work with custom timestamps to enter historical data, you should use the Citadel Writing API.

LabVIEW ships with an example of how to do this. Navigate to Help»Find Examples»Toolkits and Modules»Datalogging and Supervisory Control»Data and Alarm Historical Logging. Choose Database Direct Write Demo.lvproj, which demonstrates how to write to a Citadel trace.