Merging Two Databases Using the Historical Data Viewer in MAX for the LabVIEW DSC Module 7.0
NOTE: Throughout this document, the database copied from the remote computer is referred to as remotedatabasenew, and the local database that data will be merged into is referred to as data. Depending on the hard drive location of these databases, their complete name in MAX may vary slightly. In our examples, both folders are located directly off the C drive, and because of this, they show up in MAX as C__remotedatabasenew and C__data, respectively.
1. Copy the remote Citadel database directory to the local computer. For this tutorial, the new folder on the local computer was named remotedatabasenew.
IMPORTANT: To manually copy a database directory, you must stop the DSC Module Tag Engine and the Logos services. In the Windows 2000/NT/XP Task Manager, these services appear as nicitdl5.exe, lkads.exe, and lktsrv.exe and run automatically. The DSC Module also installs the Microsoft SQL Server Desktop Engine, which appears as msde.exe. To interact with these services, use the Services utility found in Start»Settings»Control Panel»Services. If you create the database copy while a service is running, you might get an inconsistent copy of the database.
2. Launch MAX so that you can create a new database link to the database copied from the remote computer.
3. With the Historical Data category expanded and Citadel 5 Universe selected, right-click your computer name in the Databases view and select Create/Attach Database.


Figure 2.
5. Click OK to attach the remotedatabasenew database to view and manage in the Historical Data Viewer.

Figure 3.
7. Right-click Citadel 5 Universe and select New»Trace View to create a new trace view for the remotedatabasenew database.

Figure 4.
8. Browse to and select the traces that you want to have in this view and click the Add button to add the traces to the view. Then click OK.

[+] Enlarge Image
- a. Right-click the New Trace View and select Archive.

Figure 6.
b. Select the data to archive and click Add. The data in the trace view is already added to the archive operation. Click Next.

c. Browse to and select the database to archive the new trace view data to, data, and click Next.

d. Configure archive options in the next dialog box. Do not enter a Start Time or End Time to archive all of the data you selected to archive.
e. Click OK and then Close.
Related Links:
Merging Two Databases in the LabVIEW DSC Module Using the Citadel Historical VIs
Merging Two Databases Using the Historical Data Viewer in MAX for Lookout and the LabVIEW DSC Module 6.1
Reader Comments | Submit a comment »
Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
