hist_version

hist_version — gets the version number of the Cascade Historian.

Syntax

hist_version (hist_task)
    

Parameters

hist_task

The task object corresponding to the Cascade Historian. See locate_task in the Gamma manual.

Returns

A string containing the version if successful, as:

(version  "vm.vn build number">

where "m" is the major version number and "n" is the minor version number. Otherwise returns nil and sets _last_error_ to the error string returned by the Cascade Historian.

Description

This function is similar to using the -V option on the histdb command line at the shell prompt, but it lets you check the version number while the Cascade Historian is running.

This function corresponds to the version command, and the Cogent C API function HI_Version.

Example