Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Tutorial
NI Supported: Yes
Publish Date: May 19, 2008

Logging Data to a Remote Citadel Database

3 ratings | 4.33 out of 5
Print

Starting with LabVIEW Datalogging and Supervisory Control module 6.1, you can now log data from one computer to a database on another computer. This is performed by transferring data across the network through Logos. By going through Logos, the LabVIEW Datalogging and Supervisory Control module does not require any folders to be shared on the network, and the network traffic is kept at a minimum. To perform remote data logging, follow the steps below.

Setting Up Remote Datalogging

1.) Make sure you have Logos 4.4, or higher, on both computers. If you have LabVIEW 6.1 on a computer, you already have this version of Logos installed. Logos must be installed on both computers in order for the data to be transferred between them. The latest version of Logos can be obtained from Drivers & Updates: Lookout Services.
2.) On the computer with the LabVIEW Datalogging and Supervisory Control module 6.1:
a. Open the Tag Configuration Editor
b. Select Configure»Historical. Refer to the following figure.



[+] Enlarge Image
Figure 1: Configure>>Historical...

c. Click Browse by the Log to Computer field and select the computer that will contain the database, as shown in the following figure.


Figure 2: Choosing a remote computer

d. Type in the Data Directory field the directory on the remote computer that will contain the database. For example, in Figure 2 above, the data will be logged to the computer named galahad in to the c:\mydata directory. This computer does not need to be shared or mapped in any way.

3.) The historical data will now be logged to the computer on the network.
4.) If you wish to log the alarms and events to the remote computer, repeat the above steps for the Configure»Events menu option.


Accessing the Remote Database

Two new VIs (Make Network Database Path.vi and Split Network Database Path.vi) were added to the LabVIEW Datalogging and Supervisory Control module 6.1 to aid in accessing remote databases. Make Network Database Path.vi (shown in Figure 3) creates the network path used by the trend VIs when given the computer name and location of the database. Split Network Database Path.vi gives the computer name and path location based on a given network path. These VIs can be found in the Historical Data function palette. This VIs also work for the Alarms and Event retrieval VIs.


Figure 3: Make Network Database Path.vi




3 ratings | 4.33 out of 5
Print

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/).