hist_version

Cascade Historian: Version 4.1
Prev |  | Next

# `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 API function `HI_Version`.

## Example

Prev | Home | Next
`hist_unregister` | Up | Constants

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.