Archiving a Citadel Database to a Remote Computer in the LabVIEW DSC Module 7.0 and Earlier
Downloads
Filename: archive_to_remote_computer.llb
Requirements: View
Note: In LabVIEW 7.1 and higher, archiving a Citadel database to a remote computer can be done directly using the Archive Traces VI. The following example is only relevant for versions of LabVIEW DSC prior to 7.1.
This VI demonstrates how to archive a Citadel database to a remote computer. This is done by archiving the database to a local temporary directory first, then copying this directory content to the target remote directory. The core VI in this example is the Archive_Database VI. The limitation of this VI is that it can archive the database to a local computer only. Therefore, after the VI has completed the local backup, the files are copied to the remote computer with a standard LabVIEW Copy VI. If you were to execute the Copy VI directly on the source database, it would be an incomplete copy because the database can be still open for logging. The only way to archive an open database to a remote computer is to use the Archive_Database VI to archive the database locally (local_temp_directory\LVDSCTemp), then copy that archive to the remote computer using the Copy VI.
Complete the following steps to use this example:
1. In the Source Citadel Path control, enter the path to the Citadel database that you want to archive. It should be in the form \\Computer_Name\Database_Path. If you leave this blank, it will default to the current logging database.
2. Select the Remote Directory by using the browse button on the path control. You should look for shared directories in your Network Neighborhood.
3. Set the Archival Options to customize the operation of the archive. Some of these options are ignored if the database was not logged using the currently loaded .scf file. Note that the Database Options cluster has the compress database (T) option selected by default, which will cause an error if you try to archive a database that is still logging. The error will read: The operation cannot be completed because the resource is in use by another client. This error occurs because LabVIEW is not able to compress a database that is logging data. To prevent this error, deselect this option.
Requirements
Filename: archive_to_remote_computer.llb
Software Requirements
Application Software: LabVIEW Full Development System 6.1
Toolkits and Add-Ons: LabVIEW Datalogging and Supervisory Control Module 6.1
Language(s): LabVIEW
Reader Comments | Submit a comment »
Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program 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 program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM 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/).
