(bufsize history [numvalues])
The name of a history defined by the history command.
The size of the buffer, in number of data values. The default is 100. If no value is supplied, or is zero, the command behaves like a query and the buffer size is not modified.
The size of the buffer, as an integer, in the format:
(bufsize history numvalues)
if successful, otherwise
(error "History history does not exist")
This command sets the number of data values that will be buffered for the specified history. (There are actually up to twice this number stored at any time, as the Cascade Historian double-buffers its data storage.) When a buffer is full, the data is flushed to disk, as long as an associated file has been assigned (with filebase or HI_FileBase). A larger buffer will retain more data in memory and increase the speed of queries on that data if it is within the range of the data in the buffer.
The history data is flushed to disk whenever this command is called. Until this command is used, the history buffer size is set to the initial default value (100).
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.