Set the Database Read Rate
- Updated2025-11-07
- 1 minute(s) read
Use the Historical VIs to obtain or read historical information about shared variables and to manage Citadel databases.
All VIs that read information from the Shared Variable Engine (SVE) can return information immediately or wait for the database to update with new information before returning information. The timeout input controls this behavior. This timeout value tells the VI how long to wait, in seconds, for the shared variable information to update in the SVE.
The following table describes the behavior for each timeout value:
| VI Timeout Input | Behavior |
|---|---|
| 0 | VI immediately reads the database and returns the current shared variable information. |
| Less than 0 | VI continues to wait until the shared variable updates. |
| Greater than 0 | VI waits until the shared variable updates in the database or the time between updates exceeds the timeout period, whichever occurs first, then reads the database and returns the current shared variable information. |
If you leave the timeout input unwired, the default value is 0. How you use the timeout input depends on whether you want to implement event-driven or polled programming techniques in the Human Machine Interface (HMI).