Watch SimVar Over Time
msfs_watch_simvarSample a SimVar over time to generate a time series for debugging, with configurable duration and interval. Fail fast on invalid SimVar names or units to avoid wasted polling.
Instructions
Sample a SimVar over time, returning a time series for debugging.
Fails fast if the first read raises, rather than looping for the full duration on a name or unit that will never work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | SimVar name to watch | |
| unit | No | Unit to read in. Defaults to the catalog unit. | |
| index | No | Index for indexed SimVars. Index 0 is valid. | |
| duration_s | No | Total sampling duration in seconds | |
| interval_ms | No | Polling interval in milliseconds |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |