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

Call HDV VI

Owning Palette: Historical VIs

Installed With: DSC Module

Launches the Historical Data Viewer (HDV) from a VI programmatically.

Details  

launch MAX determines whether to launch MAX. If this parameter is TRUE, the Call HDV VI starts the Historical Data Viewer in MAX. If this parameter is FALSE, the VI does nothing.
trace list is the list of traces that you want to display. You must specify a trace list and a view name for the VI to create the new view in MAX.
user folders is the list of user folders, separated by slashes, in the Historical Data Viewer in MAX. If the value you enter does not already exist in the Historical Data Viewer, the VI creates the user folder in the Historical Data Viewer. If the user folder already exists in the Historical Data Viewer, the VI directs the data view to that user folder in the Historical Data Viewer.
view name is the name of the historical data view, in MAX, that displays when the VI launches MAX. If the view name you enter does not already exist in the Historical Data Viewer, the VI creates the data view in the Historical Data Viewer. If the view name already exists in the Historical Data Viewer, and you have not input a value into trace list, the VI opens the existing data view.You must specify a trace list and a view name for the VI to create the new view in MAX.
Caution   If the view name already exists in the Historical Data Viewer, and you have input a value into trace list, the VI overwrites the existing data view.
library path is the path of the LabVIEW project library (.lvlib) file that contains configuration information for the traces to display. Enter the full path to the .lvlib file, such as C:\data\data1.lvlib.
database URL is the computer name and the database name where the Citadel database resides. Enter the database URL in the format \\computer\database_name. For example, if you have a copy of the LabVIEW Datalogging and Supervisory Control (DSC) Module and Citadel service installed on a computer named datalogger and the name of the database on that computer is data, you can access the data on datalogger from another computer by using the path \\datalogger\data. If you provide a database name only, the DSC Module searches for the database on the local computer. If you do not wire database URL, the VI reads data from the database associated with the default DSC Module process.
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
code is the error or warning code. The default is 0. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source specifies the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.
plot attributes is a cluster of parameters to set the color, point style, and line style of the trend display.
colors sets the color of the trace on the Historical Data Viewer Display view.
points is an array of points to be used. Use the position in the trend palette to determine the value for each point style. The default is 0 (no point).
00none
01circle
02filled circle
03thick circle
04circle point
05square
06filled square
07thick square
08square point
09filled small square
10point
11crosshair
12small crosshair
13x
14small x
15diamond
16small square
lines is an array of line styles to be used. Use the position in the trend palette to determine the value for each line style. The default is 0 (solid line).

0solid
1large dash
2dash
3alternate dash
4small dash
time interval is the span of time between the start timestamp and stop timestamp. If you do not wire this input, the VI reads all data logged up to now.
start timestamp is the start date and time of data you want to retrieve from the database. The LabVIEW Datalogging and Supervisory Control (DSC) Module retrieves the entire page on which the data appears. When you view the data, you might see data logged before the actual time you specified.

If you do not wire this input, the DSC Module uses the timestamp of the first data point in the database.
stop timestamp is the end date and time of data you want to retrieve from the database. The DSC Module retrieves the entire page on which the data appears. When you view the data, you might see data logged after the actual time you specified.

If you do not wire this input, the DSC Module uses the timestamp of the last data point in the database.
database URL out returns the computer name and the database name to specify where the Citadel database resides. The format is \\computer\database_name.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a nonzero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning.

Call HDV Details

To launch the Historical Data Viewer in Measurement & Automation Explorer (MAX) in its default state, leave the inputs unwired. To override the defaults, wire one or more inputs.

Refer to the Measurement & Automation Explorer Help for Historical Data Viewer, available by selecting Help»Help Topics»Historical Data Viewer in MAX, for information about how to use the Historical Data Viewer in MAX.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit